diff options
author | Adam Chlipala <adam@chlipala.net> | 2010-10-19 11:51:53 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2010-10-19 11:51:53 -0400 |
commit | 8bfef85c27fc16605ae5bf0e43975904900679c5 (patch) | |
tree | d7e12d54949ab6dec7a3ba37dffbeb9f7e5bca38 /lib/ur/monad.urs | |
parent | 0d52aedbd9ecc04c0540ad7d7d7ff2b5051dcaa5 (diff) |
Monad.appR
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 be3b59ab..0bfef87a 100644 --- a/lib/ur/monad.urs +++ b/lib/ur/monad.urs @@ -61,6 +61,11 @@ val foldMapR : K --> m ::: (Type -> Type) -> monad m -> tr [] -> r ::: {K} -> folder r -> $(map tf r) -> m ($(map tf' r) * tr r) +val appR : K --> m ::: (Type -> Type) -> monad m + -> tf :: (K -> Type) + -> (nm :: Name -> t :: K -> tf t -> m unit) + -> r ::: {K} -> folder r -> $(map tf r) -> m unit + val appR2 : K --> m ::: (Type -> Type) -> monad m -> tf1 :: (K -> Type) -> tf2 :: (K -> Type) -> (nm :: Name -> t :: K -> tf1 t -> tf2 t -> m unit) |