Idris2Doc : Data.Maybe

Data.Maybe

Definitions

isNothing : Maybea->Bool
Totality: total
Visibility: public export
isJust : Maybea->Bool
Totality: total
Visibility: public export
dataIsJust : Maybea->Type
  Proof that some `Maybe` is actually `Just`

Totality: total
Visibility: public export
Constructor: 
ItIsJust : IsJust (Justx)

Hint: 
Uninhabited (IsJustNothing)
isItJust : (v : Maybea) ->Dec (IsJustv)
  Decide whether a 'Maybe' is 'Just'

Totality: total
Visibility: public export
fromMaybe : Lazy a->Maybea->a
  Convert a `Maybe a` value to an `a` value by providing a default `a` value
in the case that the `Maybe` value is `Nothing`.

Totality: total
Visibility: public export
fromJust : (v : Maybea) -> {auto0_ : IsJustv} ->a
  Returns the `a` value of a `Maybe a` which is proved `Just`.

Totality: total
Visibility: public export
toMaybe : Bool-> Lazy a->Maybea
  Returns `Just` the given value if the conditional is `True`
and `Nothing` if the conditional is `False`.

Totality: total
Visibility: public export
lowerMaybe : Monoida=>Maybea->a
  Convert a `Maybe a` value to an `a` value, using `neutral` in the case
that the `Maybe` value is `Nothing`.

Totality: total
Visibility: public export
raiseToMaybe : Monoida=>Eqa=>a->Maybea
  Returns `Nothing` when applied to `neutral`, and `Just` the value otherwise.

Totality: total
Visibility: export
filter : (a->Bool) ->Maybea->Maybea
Totality: total
Visibility: public export