comparison lib/ur/option.urs @ 846:0d30e6338c65

Some standard library reorgs and additions; handle mutual datatypes better in Specialize
author Adam Chlipala <adamc@hcoop.net>
date Tue, 09 Jun 2009 18:11:59 -0400
parents 74a1e3bdf430
children da3ec6014d2f
comparison
equal deleted inserted replaced
845:6725d73c3c31 846:0d30e6338c65
1 datatype t = datatype Basis.option 1 datatype t = datatype Basis.option
2
3 val eq : a ::: Type -> eq a -> eq (t a)
2 4
3 val isSome : a ::: Type -> t a -> bool 5 val isSome : a ::: Type -> t a -> bool
4 6
5 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b 7 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