Safe Haskell | Safe-Inferred |
---|
Control.InjFun
- data InjFun i c m o
- inject :: (i -> c -> m o) -> InjFun i c m o
- (|->) :: Monad m => InjFun i c m o -> InjFun o c' m o' -> InjFun i (c, c') m o'
- explode :: Monad m => InjFun i c m (o0, o1) -> (InjFun i c m o0, InjFun i c m o1)
- merge :: Monad m => InjFun i c m o -> InjFun i' c' m o' -> InjFun (i, i') (c, c') m (o, o')
Inject function
Function able to be injected parameters in.
i
represents its input, c
is the injected control parameters, m
is the resulting monad
and o
is the output.