blob: 6069e0f08068d17d23bbff4deb1c2f97f50256db (
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 -XRankNTypes -XMonadComprehensions -XTransformListComp #-}
module RnFail048 where
functions :: [forall a. [a] -> [a]]
functions = [take 4, take 5]
output = [() | f <- functions, then f]
|