X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Futils%2FUtil.lhs;h=8cfdf839819a30da11e10e7d8aecce331d406f88;hp=1d11b90a557945d1cc449efb4ba744e6df9634e8;hb=8e3f4465c2a85e6328df52939c9e2429dc63aaca;hpb=45919dbe910c68db331eaa79d3e435a342396164 diff --git a/compiler/utils/Util.lhs b/compiler/utils/Util.lhs index 1d11b90..8cfdf83 100644 --- a/compiler/utils/Util.lhs +++ b/compiler/utils/Util.lhs @@ -202,7 +202,12 @@ zipWith4Equal msg _ _ _ _ _ = panic ("zipWith4Equal: unequal lists:"++msg) zipLazy :: [a] -> [b] -> [(a,b)] zipLazy [] _ = [] -zipLazy (x:xs) ~(y:ys) = (x,y) : zipLazy xs ys +-- We want to write this, but with GHC 6.4 we get a warning, so it +-- doesn't validate: +-- zipLazy (x:xs) ~(y:ys) = (x,y) : zipLazy xs ys +-- so we write this instead: +zipLazy (x:xs) zs = let y : ys = zs + in (x,y) : zipLazy xs ys \end{code}