blob: cd55dfb451b8214be329bc6b337119a5f89d6fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE MonadComprehensions, ParallelListComp #-}
-- Test for parallel list comp, which should work for monad comp as well:
--
-- On GHC 6.0 and earlier, this parallel list comprehension generated
-- an incorrect unused-binding warning.
module ShouldCompile where
t :: [(Char,Char)]
t = [ (a,b) | a <- "foo" | b <- "bar" ]
|