Mercurial > urweb
annotate lib/ur/option.urs @ 956:d80734855790
Don't try to check if functions are already tail-recursive
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 17 Sep 2009 17:17:49 -0400 |
parents | da3ec6014d2f |
children | 8c37699de273 |
rev | line source |
---|---|
adamc@841 | 1 datatype t = datatype Basis.option |
adamc@841 | 2 |
adamc@846 | 3 val eq : a ::: Type -> eq a -> eq (t a) |
adamc@846 | 4 |
adamc@944 | 5 val isNone : a ::: Type -> t a -> bool |
adamc@841 | 6 val isSome : a ::: Type -> t a -> bool |
adamc@844 | 7 |
adamc@844 | 8 val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b |
adamc@846 | 9 val bind : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b |