Module
Data.Undefinable
- Package
- purescript-undefinable
- Repository
- ethul/purescript-undefinable
This module defines a representation for undefined.
#Undefinable Source
data Undefinable :: Type -> Type
This type constructor defines a representation for a value that may or may not be undefined.
Instances
(Show a) => Show (Undefinable a)
(Eq a) => Eq (Undefinable a)
(Ord a) => Ord (Undefinable a)
#toMaybe Source
toMaybe :: forall value. Undefinable value -> Maybe value
Takes undefined
to Nothing
and a value
to Just value
.
#toUndefinable Source
toUndefinable :: forall value. Maybe value -> Undefinable value
Takes Nothing
to undefined
and Just value
to value
.
- Modules
- Data.
Undefinable