diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/mc25.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/mc25.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/mc25.hs b/testsuite/tests/typecheck/should_fail/mc25.hs new file mode 100644 index 0000000000..ecbcfde798 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/mc25.hs @@ -0,0 +1,10 @@ +-- Checks that using the "by" clause in a transform requires a function parameter + +{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-} + +module ShouldFail where + +import Data.List(take) + +z = [x | x <- [1..10], then group by x using take ] + |