summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/ds052.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/ds052.hs')
-rw-r--r--testsuite/tests/deSugar/should_compile/ds052.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/ds052.hs b/testsuite/tests/deSugar/should_compile/ds052.hs
new file mode 100644
index 0000000000..08612aec98
--- /dev/null
+++ b/testsuite/tests/deSugar/should_compile/ds052.hs
@@ -0,0 +1,7 @@
+{-# OPTIONS -fwarn-incomplete-patterns #-}
+module ShouldCompile where
+
+-- should *not* produce a warning about non-exhaustive patterns
+lazyZip:: [a] -> [b] -> [(a, b)]
+lazyZip [] _ = []
+lazyZip (x:xs) ~(y:ys) = (x, y):lazyZip xs ys