Correct quick start example in readme

This commit is contained in:
Connor Prussin 2017-07-10 12:54:41 -07:00
parent 4408ad399d
commit dd68c45d6b

View File

@ -35,9 +35,10 @@ main :: HTTPure.HTTPureM (console :: Console.CONSOLE)
main = do
HTTPure.serve 8080 routes $ Console.log "Server now up on port 8080"
where
routes = map HTTPure.Route
[ { method: HTTPure.Get
, route: "/"
routes =
[ HTTPure.Get "/"
{ status: \_ -> 200
, headers: \_ -> []
, body: \_ -> "hello world!"
}
]