Module

Data.Optional

Package
purescript-optional
Repository
erisco/purescript-optional

#default Source

default :: forall a. Optional a

Optional a default constructor. Analogous to Nothing.

#use Source

use :: forall a. a -> Optional a

Optional a use constructor. Analogous to Just.

#optional' Source

optional' :: forall r a. Optional a -> Fn2 r (a -> r) r

Optional a destructor.

#optional Source

optional :: forall r a. r -> (a -> r) -> Optional a -> r

A variant Optional a destructor analogous to maybe.

#fromMaybe Source

fromMaybe :: forall a. Maybe a -> Optional a

Convert Maybe a to Optional a.

#toMaybe Source

toMaybe :: forall a. Optional a -> Maybe a

Convert Optional a to Maybe a.

Modules
Data.Optional