summaryrefslogtreecommitdiff
path: root/Biz/Que
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Que')
-rw-r--r--Biz/Que/Host.hs2
-rw-r--r--Biz/Que/Site.hs6
2 files changed, 4 insertions, 4 deletions
diff --git a/Biz/Que/Host.hs b/Biz/Que/Host.hs
index f1b986c..da424df 100644
--- a/Biz/Que/Host.hs
+++ b/Biz/Que/Host.hs
@@ -38,8 +38,6 @@ import qualified Data.HashMap.Lazy as HashMap
import Network.HTTP.Media ((//), (/:))
import qualified Network.Wai.Handler.Warp as Warp
import Servant
-import Servant.API.Generic ((:-))
--- import qualified Servant.Auth.Server as Auth
import Servant.Server.Generic (AsServerT, genericServeT)
import qualified Servant.Types.SourceT as Source
import qualified System.Envy as Envy
diff --git a/Biz/Que/Site.hs b/Biz/Que/Site.hs
index e027717..7151cd0 100644
--- a/Biz/Que/Site.hs
+++ b/Biz/Que/Site.hs
@@ -31,7 +31,9 @@ main = Cli.main <| Cli.Plan help move test pure
move :: Cli.Arguments -> IO ()
move args = do
- let (Just src, Just ns) = (getArg "src", Text.pack </ getArg "ns")
+ let (src, ns) = case (getArg "src", Text.pack </ getArg "ns") of
+ (Just s, Just n) -> (s, n)
+ _ -> panic "could not initialize from CLI arguments"
mKey <- getKey ns
putText <| "serving " <> Text.pack src <> " at " <> ns
run mKey ns
@@ -132,7 +134,7 @@ serve Nothing "pub" path content =
mempty
liftIO <| pure ()
serve Nothing p _ _ = panic <| "no auth key provided for ns: " <> p
-serve (Just key) ns path content =
+serve (Just _) ns path content =
runReq defaultHttpConfig <| do
let options =
header "Content-type" "text/html;charset=utf-8"