Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- runWarpC :: Port -> Cell IO (a, Request) (b, Response) -> Cell (HandlingStateT IO) a (Maybe b)
- runWarpC_ :: Port -> LiveWebApp -> Cell (HandlingStateT IO) () ()
- module Network.Wai
- module Network.HTTP.Types
Documentation
runWarpC :: Port -> Cell IO (a, Request) (b, Response) -> Cell (HandlingStateT IO) a (Maybe b) Source #
runWarpC_ :: Port -> LiveWebApp -> Cell (HandlingStateT IO) () () Source #
Like runWarpC
, but don't consume additional input or produce additional output.
Suitable for a main program, for example like this:
mainCell :: Cell IO Request Response mainCell = undefined liveProgram :: LiveProgram (HandlingStateT IO) liveProgram = liveCell mainCell main :: IO () main = liveMain liveProgram
module Network.Wai
module Network.HTTP.Types