Hoogle Search
Within LTS Haskell 24.26 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
ifM :: Monad m => m Bool -> m a -> m a -> m aextra Control.Monad.Extra Like if, but where the test can be monadic.
ifM :: Monad m => m Bool -> m a -> m a -> m aextra Extra Like if, but where the test can be monadic.
ifM :: Monad m => m Bool -> m a -> m a -> m arelude Relude.Bool.Guard Monadic version of if-then-else.
>>> ifM (pure True) (putTextLn "True text") (putTextLn "False text") True text >>> ifM (pure False) (putTextLn "True text") (putTextLn "False text") False text
ifM :: Monad m => m Bool -> m a -> m a -> m aprotolude Protolude.Bool No documentation available.
ifM :: Monad m => m Bool -> m a -> m a -> m asimple-cmd SimpleCmd Like if, but where the test can be monadic.
ifM :: Monad m => m Bool -> m a -> m a -> m aincipit-base Incipit.Misc Variant of ifthenelse that takes a monadic action for the condition and branches.
ifM :: Monad m => m Bool -> m a -> m a -> m aliquid-fixpoint Language.Fixpoint.Misc No documentation available.
ifM :: Monad m => m Bool -> m b -> m b -> m bliquidhaskell-boot Language.Haskell.Liquid.Misc No documentation available.
ifM :: Monad m => m Bool -> m a -> m a -> m atasty-silver Test.Tasty.Silver.Internal Monadic if.
ifM :: Monad m => m Bool -> m a -> m a -> m axmonad XMonad.Core If-then-else lifted to a Monad.
Page 1 of many | Next