summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/mc23.hs
blob: ab6f3468a4b44126091b9c1ea4b0ec6739976d5f (plain)
1
2
3
4
5
6
7
8
9
10
-- Checks that using the "by" clause in a transform requires a function parameter

{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-}

module ShouldFail where

import Data.List(take)

z = [x | x <- [1..10], then take 5 by x ]