comparison lib/ur/option.urs @ 944:da3ec6014d2f

Filters implementation type-checking
author Adam Chlipala <adamc@hcoop.net>
date Tue, 15 Sep 2009 15:48:53 -0400
parents 0d30e6338c65
children 8c37699de273
comparison
equal deleted inserted replaced
943:e2194a6793ae 944:da3ec6014d2f
1 datatype t = datatype Basis.option 1 datatype t = datatype Basis.option
2 2
3 val eq : a ::: Type -> eq a -> eq (t a) 3 val eq : a ::: Type -> eq a -> eq (t a)
4 4
5 val isNone : a ::: Type -> t a -> bool
5 val isSome : a ::: Type -> t a -> bool 6 val isSome : a ::: Type -> t a -> bool
6 7
7 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b 8 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b
8 val bind : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b 9 val bind : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b