diff options
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 27fe255f..9ad9262d 100644 --- a/lib/ur/monad.urs +++ b/lib/ur/monad.urs @@ -39,3 +39,9 @@ val mapR : K --> m ::: (Type -> Type) -> monad m -> tr :: (K -> Type) -> (nm :: Name -> t :: K -> tf t -> m (tr t)) -> r :: {K} -> folder r -> $(map tf r) -> m ($(map tr r)) + +val mapR2 : K --> m ::: (Type -> Type) -> monad m + -> tf1 :: (K -> Type) -> tf2 :: (K -> Type) + -> tr :: (K -> Type) + -> (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)) |