Relevant Bindings no longer reports shadowed bindings (fixes #12176)
[ghc.git] / testsuite / tests / typecheck / should_fail / tcfail190.hs
1
2 -- Checks that the ordering constraint on the groupWith function is respected
3
4 {-# OPTIONS_GHC -XTransformListComp #-}
5
6 module ShouldFail where
7
8 import GHC.Exts (groupWith)
9
10 data Unorderable = Gnorf | Pinky | Brain
11
12 foo = [ ()
13 | x <- [Gnorf, Brain]
14 , then group by x using groupWith
15 ]