Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Misc combinators.
Documentation
unit :: Applicative f => f () Source #
Convenience alias for pure ()
.
whenM :: Monad m => m Bool -> m () -> m () Source #
Variant of when
that takes a monadic action for the condition.