[commit: ghc] master: testsuite: add test for #10177 (854fd12)

git at git.haskell.org git at git.haskell.org
Sun Mar 22 01:13:37 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/854fd12358fef51848c2eb5e7e08d9c8cec43e16/ghc

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

commit 854fd12358fef51848c2eb5e7e08d9c8cec43e16
Author: Austin Seipp <austin at well-typed.com>
Date:   Sat Mar 21 20:12:55 2015 -0500

    testsuite: add test for #10177
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


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

854fd12358fef51848c2eb5e7e08d9c8cec43e16
 testsuite/tests/typecheck/should_compile/T10177.hs | 10 ++++++++++
 testsuite/tests/typecheck/should_compile/all.T     |  1 +
 2 files changed, 11 insertions(+)

diff --git a/testsuite/tests/typecheck/should_compile/T10177.hs b/testsuite/tests/typecheck/should_compile/T10177.hs
new file mode 100644
index 0000000..fd84396
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T10177.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE FlexibleContexts #-}
+module T10177 where
+
+import Data.Typeable
+
+newtype V n a = V [a]
+
+class    Typeable a                   => C a
+instance (Typeable (V n), Typeable a) => C (V n a)
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index a4b497e..d4e71c7 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -444,3 +444,4 @@ test('T10031', normal, compile, [''])
 test('T10072', normal, compile_fail, [''])
 test('T10100', normal, compile, [''])
 test('T10156', normal, compile, [''])
+test('T10177', normal, compile, [''])



More information about the ghc-commits mailing list