[commit: ghc] master: Test Trac #9023 (616f54b)

git at git.haskell.org git at git.haskell.org
Thu Jun 5 11:26:39 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/616f54bdc28ad699f903248a5fb18dc0e5b52a52/ghc

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

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

    Test Trac #9023


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

616f54bdc28ad699f903248a5fb18dc0e5b52a52
 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