aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/ur/monad.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-05-16 15:34:24 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-05-16 15:34:24 -0400
commitbee7344f8b4ce196b759132bddcd036caa3aaca2 (patch)
treea87856f597a385b0dcd0541eecad1cc355221a61 /lib/ur/monad.urs
parent986eed1b84de490b264d8eac48a9aa405ea8eec0 (diff)
Fix C-mangling of datatype names
Diffstat (limited to 'lib/ur/monad.urs')
-rw-r--r--lib/ur/monad.urs7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ur/monad.urs b/lib/ur/monad.urs
index cf20dd0f..7bac8756 100644
--- a/lib/ur/monad.urs
+++ b/lib/ur/monad.urs
@@ -60,3 +60,10 @@ val foldMapR : K --> m ::: (Type -> Type) -> monad m
tf t -> tr rest -> m (tf' t * tr ([nm = t] ++ rest)))
-> tr []
-> r ::: {K} -> folder r -> $(map tf r) -> m ($(map tf' r) * tr r)
+
+val appR2 : K --> m ::: (Type -> Type) -> monad m
+ -> tf1 :: (K -> Type) -> tf2 :: (K -> Type)
+ -> (nm :: Name -> t :: K -> rest :: {K}
+ -> [[nm] ~ rest] =>
+ tf1 t -> tf2 t -> m unit)
+ -> r ::: {K} -> folder r -> $(map tf1 r) -> $(map tf2 r) -> m unit