-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Useful combinators for boolean expressions -- -- Useful combinators for boolean expressions @package control-bool @version 0.1 -- | Useful combinators for boolean expressions module Control.Bool -- | Return its second argument if the boolean value is True, -- otherwise return first. bool :: a -> a -> Bool -> a -- | A lifted not. notF :: Functor f => f Bool -> f Bool -- | A lifted (||). (<||>) :: Applicative f => f Bool -> f Bool -> f Bool -- | A lifted (&&). (<&&>) :: Applicative f => f Bool -> f Bool -> f Bool -- | aguard' b returns the second argument if b is True, otherwise -- becomes empty. aguard' :: Alternative m => Bool -> a -> m a -- | A lifted not. notM :: Monad m => m Bool -> m Bool -- | A lifted (||). (<|=>) :: Monad m => m Bool -> m Bool -> m Bool -- | A lifted (&&). (<&=>) :: Monad m => m Bool -> m Bool -> m Bool -- | guard' b returns the second argument if b is True, otherwise -- becomes mzero. guard' :: MonadPlus m => Bool -> a -> m a -- | guard' b returns the second argument if b is True, otherwise -- becomes mzero. guardM' :: MonadPlus m => m Bool -> a -> m a -- | Run the action if the given monadic condition becomes True. whenM :: (Monoid a, Monad m) => m Bool -> m a -> m a -- | Run the action if the given monadic condition becomes False. unlessM :: (Monoid a, Monad m) => m Bool -> m a -> m a