blob: f8bfd8f681dd886e7590f60239cdd5e8db73017d (
plain)
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 Data.List(inits)
z :: [Int]
z = [x | x <- [3, 2, 1], then inits]
|