Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type ApplicationT m = Request -> (Response -> m ResponseReceived) -> m ResponseReceived
- liftApplication :: MonadBaseControlIdentity IO m => Application -> ApplicationT m
- runApplicationT :: MonadBaseControlIdentity IO m => ApplicationT m -> m Application
- type MiddlewareT m = ApplicationT m -> ApplicationT m
- liftMiddleware :: MonadBaseControlIdentity IO m => Middleware -> MiddlewareT m
- runMiddlewareT :: MonadBaseControlIdentity IO m => MiddlewareT m -> m Middleware
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.
liftApplication :: MonadBaseControlIdentity IO m => Application -> ApplicationT m Source #
Lift a wai Application
to an ApplicationT
.
runApplicationT :: MonadBaseControlIdentity IO 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.
liftMiddleware :: MonadBaseControlIdentity IO m => Middleware -> MiddlewareT m Source #
Lift a wai 'Middleware to an MiddlewareT
.
runMiddlewareT :: MonadBaseControlIdentity IO m => MiddlewareT m -> m Middleware Source #
Run an MiddlewareT
in the inner monad.