diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-02-28 13:06:10 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-02-28 13:06:10 -0500 |
commit | 704a9de8fe5e35ba24185048cf990456141a8bc0 (patch) | |
tree | 514a47d371580960d255dd83a28303a9035c319b /lib/ur/monad.urs | |
parent | 0c209d971e2813d9a5e3cac699f3f5c8ad278f7d (diff) |
Changing foldRX to mapX
Diffstat (limited to 'lib/ur/monad.urs')
-rw-r--r-- | lib/ur/monad.urs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ur/monad.urs b/lib/ur/monad.urs index 698a4b5b..05f201e0 100644 --- a/lib/ur/monad.urs +++ b/lib/ur/monad.urs @@ -34,6 +34,11 @@ val foldR3 : K --> m ::: (Type -> Type) -> monad m -> tr [] -> r ::: {K} -> folder r -> $(map tf1 r) -> $(map tf2 r) -> $(map tf3 r) -> m (tr r) +val mapR0 : K --> m ::: (Type -> Type) -> monad m + -> tr :: (K -> Type) + -> (nm :: Name -> t :: K -> m (tr t)) + -> r ::: {K} -> folder r -> m ($(map tr r)) + val mapR : K --> m ::: (Type -> Type) -> monad m -> tf :: (K -> Type) -> tr :: (K -> Type) |