Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
copy of https://github.com/haskell-servant/servant/pull/1551 while we're waiting for this to be released. this was needed in https://github.com/wireapp/wire-server/pull/2848/, but then in the end it wasn't. we keep it here in the hope that whoever needs it next will have an easier time putting it to work.
Synopsis
- type ApplicationM m = Request -> (Response -> IO ResponseReceived) -> m ResponseReceived
- data RawM
Documentation
type ApplicationM m = Request -> (Response -> IO ResponseReceived) -> m ResponseReceived Source #
Variant of Raw
that lets you access the underlying monadic context to process the request.
Instances
RoutesToPaths RawM Source # | |
Defined in Servant.API.Extended.RawM | |
HasOpenApi RawM Source # | |
HasServer RawM context Source # | Just pass the request to the underlying application and serve its response. Example: type MyApi = "images" :> RawM server :: Server MyApi server = serveDirectory "/var/www/images" |
type ServerT RawM m Source # | |
Defined in Servant.API.Extended.RawM |