| Copyright | (c) 2012--2021 The University of Kansas |
|---|---|
| License | BSD3 |
| Maintainer | Neil Sculthorpe <neil.sculthorpe@ntu.ac.uk> |
| Stability | beta |
| Portability | ghc |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Language.KURE.Combinators.Monad
Contents
Description
This module provides conditional monadic combinators.
Monadic Conditionals
guardMsg :: MonadFail m => Bool -> String -> m () Source #
Similar to guard, but invokes fail rather than mzero.
guardMsgM :: MonadFail m => m Bool -> String -> m () Source #
As guardMsg, but with an m Bool as argument.