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

val monad : monad t

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