Module

Hyper.Middleware

Package
purescript-hyper
Repository
owickstrom/hyper

#Middleware Source

newtype Middleware m i o a

Constructors

Instances

#runMiddleware Source

runMiddleware :: forall a o i m. Middleware m i o a -> i -> m (Tuple a o)

#evalMiddleware Source

evalMiddleware :: forall a o i m. Functor m => Middleware m i o a -> i -> m o

#hoistMiddleware Source

hoistMiddleware :: forall a o i g f. (f ~> g) -> Middleware f i o a -> Middleware g i o a

#lift' Source

lift' :: forall a i m. Monad m => m a -> Middleware m i i a