blob: 2686005f7f5585b15a220d5e966e04ea1f80abfc (
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 aswell:
--
-- Test trying to use a function bound in the list comprehension as the transform function
{-# OPTIONS_GHC -XRank2Types -XMonadComprehensions -XTransformListComp #-}
module RnFail048 where
functions :: [forall a. [a] -> [a]]
functions = [take 4, take 5]
output = [() | f <- functions, then f]
|