web-fpco

Wrappers for web frameworks to ease usage with the FP Complete environment.

https://github.com/fpco/web-fpco

LTS Haskell 6.35:0.1.1.0
Stackage Nightly 2016-05-25:0.1.1.0
Latest on Hackage:0.1.1.0

See all snapshots web-fpco appears in

MIT licensed by Michael Snoyman
Maintained by [email protected]
This version can be pinned in stack with:web-fpco-0.1.1.0@sha256:37e8c7de498f4dab5f71a571fc1cd64609d4276294d30c1d1bbf518c0ea78071,1525

Module documentation for 0.1.1.0

This package provides very simplistic wrappers to enable running code using the Snap and Happstack web frameworks on the FP Complete environment. The only modification to standard behavior is that the port number is read from the PORT environment variable as opposed to being specified on either the command line or in the code itself. If you're using Yesod, the function warpEnv is provided in the Yesod module itself, which performs the same function.

For the most part, it should be sufficient to import the relevant module from this package in place of the standard module, e.g. import Snap.Http.Server.Env instead of Snap.Http.Server, or Happstack.Server.Env instead of Happstack.Server.