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