summaryrefslogtreecommitdiff
path: root/lib/ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-03-09 17:50:42 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-03-09 17:50:42 -0500
commit886cb3fa5ae08b3012411dd1243ceace4406978a (patch)
treeb7ccc2801d770e3641ccefff3f2bfd26b4591116 /lib/ur
parentdf76c398867ef66c583e5d481bdb33e046acfc09 (diff)
Spiffed-up Split1; remove spurious error message triggered by 'open'ing a module containing a functor
Diffstat (limited to 'lib/ur')
-rw-r--r--lib/ur/incl.ur2
-rw-r--r--lib/ur/incl.urs2
-rw-r--r--lib/ur/mem.ur2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/ur/incl.ur b/lib/ur/incl.ur
index ebf7acef..4ed27391 100644
--- a/lib/ur/incl.ur
+++ b/lib/ur/incl.ur
@@ -14,7 +14,7 @@ fun proj [r1 ::: {Type}] [r2 ::: {Type}] (i : incl r1 r2) (r : $r2) =
i [$r1] (fn [r' :: {Type}] [r1 ~ r'] (i' : incl' r1 r2 r') =>
i'.Expose [fn r => $r] r --- r')
-fun inv1 [K] [nm :: Name] [t ::: K] [r :: {K}] [r' :: {K}] [[nm] ~ r]
+fun inv1 [K] [nm :: Name] [t :: K] [r :: {K}] [r' :: {K}] [[nm] ~ r]
[f :: Name -> K -> {K} -> Type]
(i : incl ([nm = t] ++ r) r')
(f : nm :: Name -> t :: K -> r :: {K} -> [[nm] ~ r] => f nm t ([nm = t] ++ r)) =
diff --git a/lib/ur/incl.urs b/lib/ur/incl.urs
index 2c77369f..24db0a8a 100644
--- a/lib/ur/incl.urs
+++ b/lib/ur/incl.urs
@@ -3,7 +3,7 @@ con incl :: K --> {K} -> {K} -> Type
val incl : K --> r1 :: {K} -> r2 :: {K} -> [r1 ~ r2] => incl r1 (r1 ++ r2)
val proj : r1 ::: {Type} -> r2 ::: {Type} -> incl r1 r2 -> $r2 -> $r1
-val inv1 : K --> nm :: Name -> t ::: K -> r :: {K} -> r' :: {K}
+val inv1 : K --> nm :: Name -> t :: K -> r :: {K} -> r' :: {K}
-> [[nm] ~ r] =>
f :: (Name -> K -> {K} -> Type)
-> incl ([nm = t] ++ r) r'
diff --git a/lib/ur/mem.ur b/lib/ur/mem.ur
index 7f66b3c2..85ccf988 100644
--- a/lib/ur/mem.ur
+++ b/lib/ur/mem.ur
@@ -34,5 +34,5 @@ fun fold [K] [tf :: ({K} -> Type)] [r ::: {K}]
(i : tf []) (fl : folder r) =
@@Incl.fold [tf] [r]
(fn [nm :: Name] [v :: K] [r' :: {K}] [[nm] ~ r'] (i : Incl.incl ([nm = v] ++ r') r) acc =>
- f [nm] [v] [r'] ! (Incl.inv1 [nm] [r'] [r] [mem] i mem) acc)
+ f [nm] [v] [r'] ! (Incl.inv1 [nm] [v] [r'] [r] [mem] i mem) acc)
i fl