hsdev-0.1.7.0: Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.
Data.Maybe.JustIf
Synopsis
justIf :: a -> Bool -> Maybe a Source
Return Just if True
Just
justWhen :: a -> (a -> Bool) -> Maybe a Source
Return Just if f x = True
f x = True
soJust :: Bool -> a -> Maybe a Source
Flipped version of justIf
justIf