summaryrefslogtreecommitdiff
path: root/lib/ur/option.urs
blob: 62687963dca901b158055d7536eabc136b4eba5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
datatype t = datatype Basis.option

val eq : a ::: Type -> eq a -> eq (t a)
val ord : a ::: Type -> ord a -> ord (t a)

val isNone : a ::: Type -> t a -> bool
val isSome : a ::: Type -> t a -> bool

val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b
val bind : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b

val get : a ::: Type -> a -> option a -> a