Data.Option
lib/Data/Option.gob
No module comment.
type Option a
= None
| Some(a)
fun isSome : fun(Option a) -> Bool
fun isNone : fun(Option a) -> Bool
fun unwrapOr : fun(Option a, a) -> a
fun or : fun(Option a, Option a) -> Option a
o if it is a Some, and otherwise fallback. Both are evaluated before
the call, as every argument is.
fun map : fun(Option a, fun(a) -> b) -> Option b
fun fold : fun(Option a, b, fun(a) -> b) -> b
fun expect : fun(Option a, String) -> a
instance Functor Option
instance Applicative Option
instance Monad Option
instance Show (Option a) : Debug a
What its Debug prints: a container's text shows its elements' Debug,
so that a string in it is quoted.