Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- module Data.Maybe
- maybeToAlternative :: Alternative f => Maybe a -> f a
Documentation
module Data.Maybe
maybeToAlternative :: Alternative f => Maybe a -> f a Source #
Convert Maybe
value into arbitrary Alternative
instance,
mapping Nothing into empty
.