Commit 63cad5d4 authored by Matthew Pickering's avatar Matthew Pickering

Rename bundled pattern synonym tests to reflect new terminology

This also fixes a bug which causes intermittent test failures due to
interdependent tests.
parent afbd30b6
module Associated(A(..)) where
module Bundle(A(..)) where
import AssociatedInternal (A(..))
import BundleInternal (A(..))
foo = MkA 5
baz = NoA
......
module Associated1(A(..)) where
import AssociatedInternal1 (A(..))
import BundleInternal1 (A(..))
foo = MkA 5
baz = NoA
......
{-# LANGUAGE PatternSynonyms #-}
module AssociatedInternal (A(NewA,MkA, NoA)) where
module BundleInternal (A(NewA,MkA, NoA)) where
newtype A = NewA (Maybe Int)
......
{-# LANGUAGE PatternSynonyms #-}
module AssociatedInternal1 (A(NewA,MkA, NoA)) where
module BundleInternal1 (A(NewA,MkA, NoA)) where
newtype A = NewA (Maybe Int)
......
module TransAssociated(A(..)) where
import Associated (A(..))
import Bundle (A(..))
foo = MkA 5
baz = NoA
......
......@@ -33,8 +33,8 @@ test('records-poly', normal, compile, [''])
test('records-req', normal, compile, [''])
test('records-prov-req', normal, compile, [''])
test('records-req-only', normal, compile, [''])
test('Associated', [extra_clean(['AssociatedInternal1.hi', 'AssociatedInternal1.o'])], multimod_compile, ['Associated1', '-v0'])
test('TransAssociated', [extra_clean(['Associated.hi', 'Associated.o', 'AssociatedInternal.hi', 'AssociatedInternal.o'])], multimod_compile, ['TransAssociated', '-v0'])
test('pat-syn-bundle', [extra_clean(['BundleInternal1.hi', 'BundleInternal1.o'])], multimod_compile, ['Bundle1', '-v0'])
test('pat-syn-trans-bundle', [extra_clean(['Bundle.hi', 'Bundle.o', 'BundleInternal.hi', 'BundleInternal.o'])], multimod_compile, ['TransBundle', '-v0'])
test('ExportSyntax', normal, compile, [''])
test('ExportSyntaxImport', [extra_clean(['ExportSyntax.hi', 'ExportSyntax.o'])], multimod_compile, ['ExportSyntaxImport', '-v0'])
test('poly-export', normal, compile, [''])
......
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