blob: 049d2641144b9fe19af55f35f067095017249544 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
-- Test transform WITHOUT a by clause
{-# OPTIONS_GHC -XTransformListComp #-}
module Main where
main = putStrLn (show output)
where
output = [ x
| x <- [1..10]
, then take 5 ]
|