hs-abci-sdk-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Tendermint.SDK.BaseApp.Router.Delayed

Synopsis

Documentation

data Delayed m env req a Source #

Instances
Functor m => Functor (Delayed m env req) Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Router.Delayed

Methods

fmap :: (a -> b) -> Delayed m env req a -> Delayed m env req b #

(<$) :: a -> Delayed m env req b -> Delayed m env req a #

runAction :: Delayed (Sem r) env req (Sem r a) -> env -> req -> (a -> Sem r (RouteResult b)) -> Sem r (RouteResult b) Source #

delayedFail :: Monad m => RouterError -> DelayedM m req a Source #

Fail with the option to recover.

addBody :: Monad m => Delayed m env req (a -> b) -> DelayedM m req a -> Delayed m env req b Source #

addCapture :: Monad m => Delayed m env req (a -> b) -> (captured -> DelayedM m req a) -> Delayed m (captured, env) req b Source #

addParameter :: Monad m => Delayed m env req (a -> b) -> DelayedM m req a -> Delayed m env req b Source #

emptyDelayed :: Monad m => RouteResult a -> Delayed m b req a Source #

withRequest :: Monad m => (req -> DelayedM m req a) -> DelayedM m req a Source #

Gain access to the incoming request.