summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/mc13.hs
blob: a07a18327706142baef5bb1b96d968ad5dfe5698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- Test for transform list comp which should work for monad comp as well:
--
-- Test trying to use a function bound in the list comprehension as the transform function

{-# OPTIONS_GHC -XRankNTypes -XMonadComprehensions -XTransformListComp #-}

module RnFail048 where

functions :: [[a] -> [a]]
functions = [take 4, take 5]

output = [() | f <- functions, then f]