Idris2Doc : Data.Maybe.NothingMax

Data.Maybe.NothingMax

(source)

Definitions

dataLT : (a->a->Type) ->Maybea->Maybea->Type
  A total order for `Maybe a` where `a` has a total order
and `Nothing` is the maximal value.

This is useful, for instance, when implementing provably
sorted (assoc-) lists, indexed by a `Maybe key`, where
the empty list has a `Nothing` index:

```idris example
data AssocList : (ix : Maybe Bits8) -> (a : Type) -> Type where
Nil : AssocList Nothing a
(::) : (p : (Bits8, a))
-> (ps : AssocList ix a)
-> (0 prf : LT (<) (Just $ fst p) ix)
=> AssocList (Just $ fst p) a
```

Totality: total
Visibility: public export
Constructors:
LTNothing : LTlt (Justv) Nothing
LTJust : ltvw->LTlt (Justv) (Justw)

Hints:
Totalalt=>Total (Maybea) (LTlt)
Uninhabited (LTltNothingm)
Totalalt=>Uninhabited (LTlt (Justk) (Justk))
fromLT : LTlt (Justa) (Justb) ->ltab
Totality: total
Visibility: public export
comp : Totalalt=> (m1 : Maybea) -> (m2 : Maybea) ->Trichotomy (LTlt) m1m2
  Implementation and alias for `trichotomy`.

Totality: total
Visibility: export