strelka-wai-1.0.1: WAI compatibility layer for "strelka"

Safe HaskellNone
LanguageHaskell2010

Strelka.WAI

Synopsis

Documentation

strelkaServer :: Monad m => Int -> (forall a. m a -> IO (Either Text a)) -> RequestParser m ResponseBuilder -> IO () Source #

Given a port number, a base monad executor and a route specification, starts the Warp server.

strelkaApplication :: Monad m => (forall a. m a -> IO (Either Text a)) -> RequestParser m ResponseBuilder -> Application Source #

Given a base monad executor and a route specification, produces a WAI application.