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

Control.Monad.HT

Synopsis

Documentation

untilM :: Monad m => (a -> Bool) -> m a -> m aSource

repeat action until result fulfills condition

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

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

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 BoolSource

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