Commit 2cd7f402 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add tests for -XParallelListComp

parent ff65996a
......@@ -60,3 +60,5 @@ test('read050', normal, compile, [''])
test('read051', normal, compile, [''])
test('read052', normal, compile, [''])
test('read053', normal, compile, [''])
test('read054', normal, compile, [''])
test('read055', normal, compile, [''])
{-# OPTIONS_GHC -XParallelListComp #-}
module Foo where
foo = [ ()
| () <- foo
| () <- foo
]
{-# LANGUAGE ParallelListComp #-}
module Foo where
foo = [ ()
| () <- foo
| () <- foo
]
......@@ -44,3 +44,4 @@ test('read034', normal, compile_fail, [''])
test('read035', normal, compile_fail, [''])
test('read036', normal, compile_fail, [''])
test('read037', normal, compile_fail, [''])
test('read038', normal, compile_fail, [''])
module Foo where
foo = [ ()
| () <- foo
| () <- foo
]
read038.hs:4:6:
Illegal parallel list comprehension: use -XParallelListComp
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment