diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/mc22.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/mc22.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/mc22.hs b/testsuite/tests/typecheck/should_fail/mc22.hs new file mode 100644 index 0000000000..dd8d44e6b7 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/mc22.hs @@ -0,0 +1,11 @@ +-- Checks that the types of the old binder and the binder +-- implicitly introduced by grouping are linked + +{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-} + +module ShouldFail where + +foo = [ x + 1 + | x <- ["Hello", "World"] + , then group using take 5 + ] |