truthful-0.1.0.2: Typeclass for truthfulness of values

Safe HaskellSafe
LanguageHaskell98

Control.Monad.Truthful

Documentation

whenTruthful :: (Monad m, Truthful a, Monoid b) => m b -> a -> m b Source

unlessTruthful :: (Monad m, Truthful a, Monoid b) => m b -> a -> m b Source

whenTruthful1 :: (Monad m, Truthful a, Monoid b) => (a -> m b) -> a -> m b Source