Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Utils for Maybe data type
Synopsis
- onNothing :: Maybe a -> a -> a
- onNothingM :: Monad m => m (Maybe a) -> m a -> m a
- fromMaybeM :: Monad m => m a -> m (Maybe a) -> m a
- headMaybe :: [a] -> Maybe a
- module Data.Maybe
Documentation
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
module Data.Maybe