diff options
Diffstat (limited to 'testsuite/tests/rename/should_compile/T4534.hs')
-rw-r--r-- | testsuite/tests/rename/should_compile/T4534.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T4534.hs b/testsuite/tests/rename/should_compile/T4534.hs new file mode 100644 index 0000000000..03eb67f23d --- /dev/null +++ b/testsuite/tests/rename/should_compile/T4534.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE TransformListComp #-} + +-- GHC 7.0.1 failed because the renamer didn't attach +-- all the used variables to the TransformListComp constructor + +module List where + +intersectFront :: Ord a => [a] -> [a] -> [a] +intersectFront xs ys = [x | (x,y) <- zip xs ys, then takeWhile by x == y] |