summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail194.hs
blob: 9166b18b4a81e73796b360adab994f31d90a4903 (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 -XTransformListComp #-}

module ShouldFail where

import Data.List(take)

z = [x | x <- [1..10], then take 5 by x]