blob: ecbcfde798c73e3c94e61355a19144a0d065536f (
plain)
1
2
3
4
5
6
7
8
9
10
|
-- Checks that using the "by" clause in a transform requires a function parameter
{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-}
module ShouldFail where
import Data.List(take)
z = [x | x <- [1..10], then group by x using take ]
|