diff options
author | 2015-10-31 11:49:30 -0400 | |
---|---|---|
committer | 2015-10-31 11:49:30 -0400 | |
commit | 88e068e1815a30e7b4b1e7e7dc99cf171ab51c59 (patch) | |
tree | facd7fbd53d55b53764476ec4c8b2b92be4fd3b6 /lib/ur/monad.urs | |
parent | 09d7f40a1030d01dd478e0c81769b6d96a1d1208 (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) |