wai-control-0.2.0.0: Run wai Applications in IO based monads
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Trans

Synopsis

Application

type ApplicationT m = Request -> (Response -> m ResponseReceived) -> m ResponseReceived Source #

A type synonym for a wai Application which has been lifted from the IO monad.

runApplicationT :: MonadUnliftIO m => ApplicationT m -> m Application Source #

Run an ApplicationT in the inner monad.

Middleware

type MiddlewareT m = ApplicationT m -> ApplicationT m Source #

A type synonym for a wai Middleware which has been lifted from the IO monad.

runMiddlewareT :: MonadUnliftIO m => MiddlewareT m -> m Middleware Source #

Run a MiddlewareT in the inner monad.