servant-server-0.19.2: A family of combinators for defining webservices APIs and serving them
Safe Haskell None
Language Haskell2010

Servant.Server.Internal.DelayedIO

Synopsis

Documentation

newtype DelayedIO a Source #

Computations used in a Delayed can depend on the incoming Request , may perform IO , and result in a RouteResult , meaning they can either succeed, fail (with the possibility to recover), or fail fatally.

Instances

Instances details
Monad DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

Functor DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

Applicative DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

MonadIO DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

MonadThrow DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

MonadResource DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

MonadBase IO DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

MonadBaseControl IO DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

Associated Types

type StM DelayedIO a Source #

MonadReader Request DelayedIO Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

type StM DelayedIO a Source #
Instance details

Defined in Servant.Server.Internal.DelayedIO

delayedFail :: ServerError -> DelayedIO a Source #

Fail with the option to recover.

delayedFailFatal :: ServerError -> DelayedIO a Source #

Fail fatally, i.e., without any option to recover.

withRequest :: ( Request -> DelayedIO a) -> DelayedIO a Source #

Gain access to the incoming request.