Added a new operator to Utils (>.>, the flipped version of <.<)

This commit is contained in:
Neil Brown 2008-06-02 14:09:33 +00:00
parent 0adbdda126
commit 59e0922263

View File

@ -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