haskus-utils-data-1.4: Haskus data utility modules
Safe HaskellSafe-Inferred
LanguageHaskell2010

Haskus.Utils.Maybe

Description

Utils for Maybe data type

Synopsis

Documentation

onNothing :: Maybe a -> a -> a Source #

Flipped fromMaybe

onNothingM :: Monad m => m (Maybe a) -> m a -> m a Source #

Flipped fromMaybeM

fromMaybeM :: Monad m => m a -> m (Maybe a) -> m a Source #

fromMaybe in a Monad

headMaybe :: [a] -> Maybe a Source #

Get the head of the list if the latter is not empty

module Data.Maybe