blob: efdfd5b453b36a1a0fe9b92882c7403ad77869c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
-- Checks that the ordering constraint on the groupWith function is respected
{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-}
module ShouldFail where
import GHC.Exts (groupWith)
data Unorderable = Gnorf | Pinky | Brain
foo = [ ()
| x <- [Gnorf, Brain]
, then group by x using groupWith
]
|