hw-prelude-0.0.4.1: Opinionated prelude library
Safe HaskellSafe-Inferred
LanguageHaskell2010

HaskellWorks.Control.Monad

Synopsis

Documentation

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.