hs-abci-sdk-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Tendermint.SDK.BaseApp.Router.Router

Documentation

type Router env r req res = Router' env (Application (Sem r) req res) Source #

data Router' env a Source #

Constructors

StaticRouter (Map Text (Router' env a)) [env -> a] 
CaptureRouter (Router' (Text, env) a) 
Choice (Router' env a) (Router' env a) 

runRouter :: HasPath req => Router env r req res -> env -> Application (Sem r) req res Source #

pathRouter :: Text -> Router' env a -> Router' env a Source #

leafRouter :: (env -> a) -> Router' env a Source #

choice :: Router' env a -> Router' env a -> Router' env a Source #