diff options
author | Adam Chlipala <adam@chlipala.net> | 2015-10-31 11:49:30 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2015-10-31 11:49:30 -0400 |
commit | b22998fc7c7984e35e3465ea4f66579523e85e0d (patch) | |
tree | facd7fbd53d55b53764476ec4c8b2b92be4fd3b6 /lib/ur/monad.urs | |
parent | 9522a0b394273e23c3b0492f2630e600e596488e (diff) |
Monad.mapR3
Diffstat (limited to 'lib/ur/monad.urs')
-rw-r--r-- | lib/ur/monad.urs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ur/monad.urs b/lib/ur/monad.urs index ce823f4a..8ca8d0a3 100644 --- a/lib/ur/monad.urs +++ b/lib/ur/monad.urs @@ -58,6 +58,12 @@ val mapR2 : K --> m ::: (Type -> Type) -> monad m -> (nm :: Name -> t :: K -> tf1 t -> tf2 t -> m (tr t)) -> r ::: {K} -> folder r -> $(map tf1 r) -> $(map tf2 r) -> m ($(map tr r)) +val mapR3 : K --> m ::: (Type -> Type) -> monad m + -> tf1 :: (K -> Type) -> tf2 :: (K -> Type) -> tf3 :: (K -> Type) + -> tr :: (K -> Type) + -> (nm :: Name -> t :: K -> tf1 t -> tf2 t -> tf3 t -> m (tr t)) + -> r ::: {K} -> folder r -> $(map tf1 r) -> $(map tf2 r) -> $(map tf3 r) -> m ($(map tr r)) + val foldMapR : K --> m ::: (Type -> Type) -> monad m -> tf :: (K -> Type) -> tf' :: (K -> Type) |