prelate-0.1.0.0: A Prelude
Safe HaskellSafe-Inferred
LanguageHaskell2010

Prelate.Data.Maybe

Synopsis

Documentation

justIf :: Bool -> a -> Maybe a Source #

Return Just if the condition is True.

fromMaybeA :: Applicative m => m a -> Maybe a -> m a Source #

Version of maybe that takes an action as fallback.