diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-21 09:13:12 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-21 09:13:12 +0000 |
commit | bfbc22268b3622a2f63cd6f5b929a122ff251fd0 (patch) | |
tree | 64097d4083c44f87d1868ae2f35307c4dba402c7 | |
parent | ff05fa3fab535df6610ce4df21162fc676f098f0 (diff) | |
download | thermoprint-bfbc22268b3622a2f63cd6f5b929a122ff251fd0.tar thermoprint-bfbc22268b3622a2f63cd6f5b929a122ff251fd0.tar.gz thermoprint-bfbc22268b3622a2f63cd6f5b929a122ff251fd0.tar.bz2 thermoprint-bfbc22268b3622a2f63cd6f5b929a122ff251fd0.tar.xz thermoprint-bfbc22268b3622a2f63cd6f5b929a122ff251fd0.zip |
typos
-rw-r--r-- | server/src/Thermoprint/Server.hs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/src/Thermoprint/Server.hs b/server/src/Thermoprint/Server.hs index eff6c3a..8cbe71d 100644 --- a/server/src/Thermoprint/Server.hs +++ b/server/src/Thermoprint/Server.hs | |||
@@ -41,8 +41,8 @@ import Data.Set (Set) | |||
41 | import qualified Data.Set as Set | 41 | import qualified Data.Set as Set |
42 | import Data.Sequence (Seq) | 42 | import Data.Sequence (Seq) |
43 | import qualified Data.Sequence as Seq | 43 | import qualified Data.Sequence as Seq |
44 | import Data.Sequence (Map) | 44 | import Data.Map (Map) |
45 | import qualified Data.Sequence as Map | 45 | import qualified Data.Map as Map |
46 | 46 | ||
47 | import qualified Network.Wai.Handler.Warp as Warp | 47 | import qualified Network.Wai.Handler.Warp as Warp |
48 | import Network.Wai (Application) | 48 | import Network.Wai (Application) |
@@ -70,7 +70,6 @@ data HandlerInput = HandlerInput { sqlPool :: ConnectionPool | |||
70 | 70 | ||
71 | share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase| | 71 | share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase| |
72 | Job | 72 | Job |
73 | printer PrinterId | ||
74 | content Printout | 73 | content Printout |
75 | Draft | 74 | Draft |
76 | title DraftTitle Maybe | 75 | title DraftTitle Maybe |
@@ -115,13 +114,13 @@ infixr 9 <||> | |||
115 | 114 | ||
116 | thermoprintServer' :: ServerT ThermoprintAPI Handler | 115 | thermoprintServer' :: ServerT ThermoprintAPI Handler |
117 | thermoprintServer' = listPrinters | 116 | thermoprintServer' = listPrinters |
118 | :<|> listJobs <||> queueJob | 117 | :<|> (listJobs :<|> queueJob) |
119 | :<|> getJob <||> jobStatus <||> deleteJob | 118 | :<|> getJob <||> jobStatus <||> deleteJob |
120 | :<|> (listDrafts :<|> addDraft) | 119 | :<|> (listDrafts :<|> addDraft) |
121 | :<|> updateDraft <||> getDraft <||> deleteDraft <||> printDraft | 120 | :<|> updateDraft <||> getDraft <||> deleteDraft <||> printDraft |
122 | 121 | ||
123 | 122 | ||
124 | listPrinters :: Handler (Set PrinterId) | 123 | listPrinters :: Handler (Map PrinterId PrinterStatus) |
125 | listPrinters = return Set.empty | 124 | listPrinters = return Set.empty |
126 | 125 | ||
127 | queueJob :: Maybe PrinterId -> Printout -> Handler API.JobId | 126 | queueJob :: Maybe PrinterId -> Printout -> Handler API.JobId |