hsdev-0.1.7.3: Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.

Safe HaskellSafe
LanguageHaskell98

Data.Maybe.JustIf

Synopsis

Documentation

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

Return Just if True

justWhen :: a -> (a -> Bool) -> Maybe a Source

Return Just if f x = True

soJust :: Bool -> a -> Maybe a Source

Flipped version of justIf