tcfail193.hs 230 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
-- Checks that the correct type is used checking the using clause of the transform

{-# OPTIONS_GHC -XTransformListComp #-}

module ShouldFail where

import List(inits)

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