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

git at git.haskell.org git at git.haskell.org
Mon Jun 23 09:07:38 UTC 2014


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

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

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

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

    Test Trac #9023
    
    (cherry picked from commit 1b45c6b4959762209dbcabf3290feb8673a60b23)


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

f6e494231b2ad00fa073fc6623a876ffe40e900e
 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