diff options
author | Ian Lynagh <igloo@earth.li> | 2012-06-22 19:40:50 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-06-22 19:40:50 +0100 |
commit | 90054502ed485143893ffbbfff738aff20aa6e8c (patch) | |
tree | 8e85c9ce886865a4d226e18a08415ad3eef01ab9 /compiler/utils | |
parent | 41a50207f1fb10c12518dedf07d9cfba6d41d0bc (diff) | |
download | haskell-90054502ed485143893ffbbfff738aff20aa6e8c.tar.gz |
Remove a GHC 6.4 workaround
Diffstat (limited to 'compiler/utils')
-rw-r--r-- | compiler/utils/Util.lhs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/utils/Util.lhs b/compiler/utils/Util.lhs index e22cde8434..1268c52e54 100644 --- a/compiler/utils/Util.lhs +++ b/compiler/utils/Util.lhs @@ -310,12 +310,7 @@ zipWith4Equal msg _ _ _ _ _ = panic ("zipWith4Equal: unequal lists:"++msg) -- | 'zipLazy' is a kind of 'zip' that is lazy in the second list (observe the ~) zipLazy :: [a] -> [b] -> [(a,b)] zipLazy [] _ = [] --- 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 +zipLazy (x:xs) ~(y:ys) = (x,y) : zipLazy xs ys \end{code} |