| Safe Haskell | Safe-Inferred |
|---|
Foreign.Java.Control
Description
Utilities for controlling actions inside the Java monad.
Documentation
when :: Monad m => m Bool -> m () -> m ()Source
Execute an action if the given predicate
evaluates to True.
unless :: Monad m => m Bool -> m () -> m ()Source
Execute an action if the given predicate
evaluates to False.
while :: Monad m => m Bool -> m () -> m ()Source
Run a computation as long as the given predicate
evaluates to True.