| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
CabalGild.Type.Optional
Documentation
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.
withDefault :: a -> Optional a -> a Source #