Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- serve :: Monad m => Configuration m -> (String -> Purview () m) -> IO ()
- data Configuration m = Configuration {}
- defaultConfiguration :: Configuration IO
- renderFullPage :: Typeable action => Configuration m -> Purview action m -> Builder
- startWebSocketLoop :: (Monad m, Typeable action) => Configuration m -> Purview action m -> Connection -> IO ()
Documentation
serve :: Monad m => Configuration m -> (String -> Purview () m) -> IO () Source #
This starts up the Warp server.
Example:
import Purview.Server view url = p [ text "hello world" ] main = serve defaultConfiguration view
data Configuration m Source #
Configuration | |
|
renderFullPage :: Typeable action => Configuration m -> Purview action m -> Builder Source #
startWebSocketLoop :: (Monad m, Typeable action) => Configuration m -> Purview action m -> Connection -> IO () Source #