rosso-1.0: General purpose utility library

Data.Maybe.Rosso1

Description

Extends Data.Maybe

Synopsis

Documentation

module Data.Maybe

toMaybe :: (a -> Bool) -> a -> Maybe aSource

Dual of fromMaybe. Wraps the value in Just if the predicate succeeds, otherwise returns Nothing.