summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/ds052.hs
blob: 08612aec98e205a974d863f1680f38f958231289 (plain)
1
2
3
4
5
6
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