tcfail194.hs 210 Bytes
Newer Older
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 List(take)

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