CabalGild.Unstable.Type.Optional
data Optional a Source #
Represents a value that may or may not be present. Isomorphic to Maybe. Useful to distinguish between a value not being given and a value happening to be the same as the default.
Maybe
Constructors
Defined in CabalGild.Unstable.Type.Optional
Methods
showsPrec :: Int -> Optional a -> ShowS #
show :: Optional a -> String #
showList :: [Optional a] -> ShowS #
(==) :: Optional a -> Optional a -> Bool #
(/=) :: Optional a -> Optional a -> Bool #
fromMaybe :: Maybe a -> Optional a Source #
Converts a Maybe value into an Optional one.
Optional
toMaybe :: Optional a -> Maybe a Source #
Converts an Optional value into a Maybe one.