Added a new operator to Utils (>.>, the flipped version of <.<)
This commit is contained in:
parent
0adbdda126
commit
59e0922263
|
@ -198,6 +198,9 @@ liftF f x = lift (f x)
|
|||
(<.<) :: Monad m => (b -> m c) -> (a -> m b) -> (a -> m c)
|
||||
(<.<) f1 f0 x = f0 x >>= f1
|
||||
|
||||
-- | The <.< operator, flipped
|
||||
(>.>) :: Monad m => (a -> m b) -> (b -> m c) -> (a -> m c)
|
||||
(>.>) = flip (<.<)
|
||||
|
||||
-- | A size 3 version of the standard uncurry function.
|
||||
uncurry3 :: (a -> b -> c -> d) -> (a,b,c) -> d
|
||||
|
|
Loading…
Reference in New Issue
Block a user