prelate-0.7.0.1: A Prelude
Safe HaskellSafe-Inferred
LanguageGHC2021

Prelate.Data.Maybe

Description

Maybe combinators

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.