summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/rnfail049.hs
blob: 1ae3da6d00d7205ca1d3874d46aac658bc94ea1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- Test trying to use a function bound in the list comprehension as the group function

{-# OPTIONS_GHC -XRankNTypes -XTransformListComp #-}

module RnFail049 where

import Data.List(inits, tails)

functions :: [[a] -> [[a]]]
functions = [inits, tails]

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