diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/mc21.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/mc21.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/mc21.hs b/testsuite/tests/typecheck/should_fail/mc21.hs new file mode 100644 index 0000000000..601403a6bd --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/mc21.hs @@ -0,0 +1,13 @@ +-- Checks that the correct type is used checking the using clause of the group + +{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-} + +module ShouldFail where +import GHC.Exts( the ) + +data Unorderable = Gnorf | Pinky | Brain + +foo = [ length x + | x <- [Gnorf, Brain] + , then group using take 5 + ] |