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