[project @ 1999-01-24 13:45:05 by sof]
authorsof <unknown>
Sun, 24 Jan 1999 13:45:09 +0000 (13:45 +0000)
committersof <unknown>
Sun, 24 Jan 1999 13:45:09 +0000 (13:45 +0000)
Updated desugaring reg. tests

ghc/tests/deSugar/should_compile/ds002.stderr
ghc/tests/deSugar/should_compile/ds003.stderr
ghc/tests/deSugar/should_compile/ds019.stderr
ghc/tests/deSugar/should_compile/ds020.stderr
ghc/tests/deSugar/should_compile/ds022.stderr
ghc/tests/deSugar/should_compile/ds033.stderr
ghc/tests/deSugar/should_compile/ds034.stderr
ghc/tests/deSugar/should_compile/ds040.stderr
ghc/tests/deSugar/should_compile/ds042.hs [new file with mode: 0644]

index facbd68..beaeb33 100644 (file)
@@ -1,8 +1,8 @@
-ds002.hs:11: 
-    Pattern match(es) are overlapped in the definition of function `g'
-           x y z = ...
-ds002.hs:7: 
-    Pattern match(es) are overlapped in the definition of function `f'
-           y = ...
-           z = ...
+ds002.hs:7: Pattern match(es) are overlapped in the definition of function `f':
+           f y = ...
+           f z = ...
+
+ds002.hs:11: Pattern match(es) are overlapped in the definition of function `g':
+           g x y z = ...
+
 
index 3b040b6..188cae5 100644 (file)
@@ -1,5 +1,5 @@
-ds003.hs:5: 
-    Pattern match(es) are overlapped in the definition of function `f'
-           (: x (: x1 (: x2 x3))) ~(y, ys) z = ...
-           x y True = ...
+ds003.hs:5: Pattern match(es) are overlapped in the definition of function `f':
+           f (x : (x1 : (x2 : x3))) ~(y, ys) z = ...
+           f x y True = ...
+
 
index 069a78e..874b393 100644 (file)
@@ -1,6 +1,6 @@
-ds019.hs:5: 
-    Pattern match(es) are overlapped in the definition of function `f'
-           d (j, k) p = ...
-           (e, f, g) l q = ...
-           h (m, n) r = ...
+ds019.hs:5: Pattern match(es) are overlapped in the definition of function `f':
+           f d (j, k) p = ...
+           f (e, f, g) l q = ...
+           f h (m, n) r = ...
+
 
index e1d1bae..909af82 100644 (file)
@@ -1,14 +1,14 @@
-ds020.hs:5: 
-    Pattern match(es) are overlapped in the definition of function `a'
-           ~(~[], ~[], ~[]) = ...
-ds020.hs:8: 
-    Pattern match(es) are overlapped in the definition of function `b'
-           ~(: ~x (: ~xs ~ys)) = ...
-ds020.hs:13: 
-    Pattern match(es) are overlapped in the definition of function `d'
-           ~(n+43) = ...
-           ~(n+999) = ...
-ds020.hs:19: 
-    Pattern match(es) are overlapped in the definition of function `f'
-           (x@~[]) = ...
+ds020.hs:5: Pattern match(es) are overlapped in the definition of function `a':
+           a ~(~[], ~[], ~[]) = ...
+
+ds020.hs:8: Pattern match(es) are overlapped in the definition of function `b':
+           b ~(~x : (~xs : ~ys)) = ...
+
+ds020.hs:13: Pattern match(es) are overlapped in the definition of function `d':
+           d ~(n+43) = ...
+           d ~(n+999) = ...
+
+ds020.hs:19: Pattern match(es) are overlapped in the definition of function `f':
+           f (x@~[]) = ...
+
 
index 1d0291b..380086f 100644 (file)
@@ -1,5 +1,5 @@
-ds022.hs:20: 
-    Pattern match(es) are overlapped in the definition of function `i'
-           1 1.1 = ...
-           2 2.2 = ...
+ds022.hs:20: Pattern match(es) are overlapped in the definition of function `i':
+           i 1 1.1 = ...
+           i 2 2.2 = ...
+
 
index 60773af..c20c84f 100644 (file)
@@ -1,5 +1,4 @@
-ds040.hs:7: 
-    Pattern match(es) are overlapped
-       in the definition of function `^^^^'
-           _ _ = ...
+ds040.hs:7: Pattern match(es) are overlapped in the definition of function `^^^^':
+           ^^^^ _ _ = ...
+
 
diff --git a/ghc/tests/deSugar/should_compile/ds042.hs b/ghc/tests/deSugar/should_compile/ds042.hs
new file mode 100644 (file)
index 0000000..e3f928d
--- /dev/null
@@ -0,0 +1,8 @@
+-- !!! Guard on a tuple pattern, broke 4.01 due to the
+-- !!! special handling of unboxed tuples in desugarer.
+module ShouldCompile where
+
+f :: Int -> (Int,Int)
+f x = 
+  case f x of
+    (a,b) | a > 0 -> f (x-1)