tcfail193.hs 235 Bytes
Newer Older
1
2
3
4
5
6
-- Checks that the correct type is used checking the using clause of the transform

{-# OPTIONS_GHC -XTransformListComp #-}

module ShouldFail where

7
import Data.List(inits)
8
9
10
11

z :: [Int]
z = [x | x <- [3, 2, 1], then inits]