summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/mc21.hs
blob: 601403a6bd088c0bd1f93eed3321904fbc1d3d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
      ]