packages feed

web-fpco-0.1.1.0: web-fpco.cabal

name:                web-fpco
version:             0.1.1.0
synopsis:            Wrappers for web frameworks to ease usage with the FP Complete environment.
description:         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@.
homepage:            https://github.com/fpco/web-fpco
license:             MIT
license-file:        LICENSE
author:              Michael Snoyman
maintainer:          michael@fpcomplete.com
category:            Web
build-type:          Simple
cabal-version:       >=1.8

library
  exposed-modules:     Snap.Http.Server.Env
                       Happstack.Server.Env
  build-depends:       base >= 4 && < 5
                     , safe >= 0.3
                     , snap >= 0.11
                     , snap-core >= 0.9
                     , snap-server >= 0.9
                     , happstack-server >= 7.1