[commit: ghc] ghc-7.8: Test Trac #9023 (1a7c07b)

git at git.haskell.org git at git.haskell.org
Thu Jul 3 22:26:25 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/1a7c07b01e6d4ccb5987341f0bee3fbfbed0fb9b/ghc

>---------------------------------------------------------------

commit 1a7c07b01e6d4ccb5987341f0bee3fbfbed0fb9b
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Jun 5 12:26:24 2014 +0100

    Test Trac #9023
    
    (cherry picked from commit 616f54bdc28ad699f903248a5fb18dc0e5b52a52)


>---------------------------------------------------------------

1a7c07b01e6d4ccb5987341f0bee3fbfbed0fb9b
 testsuite/tests/patsyn/should_compile/T9023.hs | 6 ++++++
 testsuite/tests/patsyn/should_compile/all.T    | 1 +
 2 files changed, 7 insertions(+)

diff --git a/testsuite/tests/patsyn/should_compile/T9023.hs b/testsuite/tests/patsyn/should_compile/T9023.hs
new file mode 100644
index 0000000..3a86140
--- /dev/null
+++ b/testsuite/tests/patsyn/should_compile/T9023.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE PatternSynonyms #-}
+
+module T9023 where
+
+pattern P a b = Just (a, b)
+foo P{} = True
diff --git a/testsuite/tests/patsyn/should_compile/all.T b/testsuite/tests/patsyn/should_compile/all.T
index ecc4701..d851bc3 100644
--- a/testsuite/tests/patsyn/should_compile/all.T
+++ b/testsuite/tests/patsyn/should_compile/all.T
@@ -9,3 +9,4 @@ test('num', normal, compile, [''])
 test('incomplete', normal, compile, [''])
 test('export', normal, compile, [''])
 test('T8966', normal, compile, [''])
+test('T9023', normal, compile, [''])



More information about the ghc-commits mailing list