tcfail194.hs 215 Bytes
Newer Older
1
2
3
4
5
6
-- Checks that using the "by" clause in a transform requires a function parameter

{-# OPTIONS_GHC -XTransformListComp #-}

module ShouldFail where

7
import Data.List(take)
8
9
10

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