blob: 0d426a4a2719e96ac3ec9fe8ae80099559b52e5e (
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]
|