utility-ht-0.0.8: Various small helper functions for Lists, Maybes, Tuples, Functions

Safe HaskellSafe-Infered

Control.Monad.HT

Synopsis

Documentation

(<=<) :: Monad m => (b -> m c) -> (a -> m b) -> a -> m c

Also present in newer versions of the base package.

repeat :: Monad m => m a -> m [a]

Monadic repeat.

until, untilM :: Monad m => (a -> Bool) -> m a -> m a

repeat action until result fulfills condition

iterateLimit, iterateLimitM :: Monad m => Int -> (a -> m a) -> a -> m [a]

parameter order equal to that of nest

andLazy :: Monad m => m Bool -> m Bool -> m Bool

Lazy monadic conjunction. That is, when the first action returns False, then False is immediately returned, without running the second action.

orLazy :: Monad m => m Bool -> m Bool -> m Bool

Lazy monadic disjunction. That is, when the first action returns True, then True is immediately returned, without running the second action.