summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read062.hs
blob: 3ce232302c06083d949704eb171b28b4c72d3483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{-# OPTIONS_GHC -XTransformListComp #-}

module Foo where

import Data.List (inits)
import GHC.Exts

foo = [ ()
      | x <- [1..10]
      , then take 5
      , then sortWith by x
      , then group by x using groupWith
      , then group using inits
      , then group by x using groupWith
      ]