haskus-utils-0.8.0.0: Haskus utility modules

Safe HaskellSafe
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