Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Bidirectional version of Data.Maybe.
Documentation
listToMaybe :: [a] <-> Maybe a Source #
Convert between (the head of) a (singleton) list and Maybe
(see listToMaybe
). (
)invert
maybeToList
maybeToList :: Maybe a <-> [a] Source #
Convert between Maybe
and a (singleton) list (see maybeToList
). (
)invert
listToMaybe