Split out SecureServerM (#60)

This commit is contained in:
Connor Prussin
2017-08-01 21:58:11 -07:00
committed by Connor Prussin
parent 61a66c324a
commit ea1bfbe182
4 changed files with 14 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ sayHello :: forall e. HTTPure.Request -> HTTPure.ResponseM e
sayHello _ = pure $ HTTPure.OK StrMap.empty "hello world!"
-- | Boot up the server
main :: forall e. HTTPure.ServerM (console :: Console.CONSOLE | e)
main :: forall e. HTTPure.SecureServerM (console :: Console.CONSOLE | e)
main = HTTPure.serve' port cert key sayHello do
Console.log $ " ┌───────────────────────────────────────────┐"
Console.log $ " │ Server now up on port " <> portS <> " │"