HaskellWorks.Control.Monad
whileM :: Monad m => m Bool -> m () Source #
unlessM :: Monad m => m Bool -> m () Source #
whileNothingM :: Monad m => m (Maybe a) -> m a Source #
repeatNUntilM_ :: Monad m => Int -> (Int -> m Bool) -> m () Source #
Repeat an action n times until the action returns True.
repeatNWhileM_ :: Monad m => Int -> (Int -> m Bool) -> m () Source #
Repeat an action n times while the action returns True.