summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/rnfail049.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_fail/rnfail049.hs')
-rw-r--r--testsuite/tests/rename/should_fail/rnfail049.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/rnfail049.hs b/testsuite/tests/rename/should_fail/rnfail049.hs
new file mode 100644
index 0000000000..7f4b6c7842
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/rnfail049.hs
@@ -0,0 +1,14 @@
+-- Test trying to use a function bound in the list comprehension as the group function
+
+{-# OPTIONS_GHC -XRank2Types -XTransformListComp #-}
+
+module RnFail049 where
+
+import Data.List(inits, tails)
+
+functions :: [forall a. [a] -> [[a]]]
+functions = [inits, tails]
+
+output = [() | f <- functions, then group using f]
+
+