diff options
Diffstat (limited to 'testsuite/tests/rename/should_compile/mc12.hs')
-rw-r--r-- | testsuite/tests/rename/should_compile/mc12.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/mc12.hs b/testsuite/tests/rename/should_compile/mc12.hs new file mode 100644 index 0000000000..cd55dfb451 --- /dev/null +++ b/testsuite/tests/rename/should_compile/mc12.hs @@ -0,0 +1,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" ] |