[commit: ghc] ghc-7.10: testsuite: add test for #10177 (0926edc)
git at git.haskell.org
git at git.haskell.org
Sun Mar 22 01:16:47 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.10
Link : http://ghc.haskell.org/trac/ghc/changeset/0926edc66bc36d075037f0e455fdaef43c052fae/ghc
>---------------------------------------------------------------
commit 0926edc66bc36d075037f0e455fdaef43c052fae
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>
(cherry picked from commit 854fd12358fef51848c2eb5e7e08d9c8cec43e16)
>---------------------------------------------------------------
0926edc66bc36d075037f0e455fdaef43c052fae
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 87d217f..258aa7f 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -440,3 +440,4 @@ test('T9892', normal, compile, [''])
test('T9971', normal, compile, [''])
test('T10031', normal, compile, [''])
test('T10072', normal, compile_fail, [''])
+test('T10177', normal, compile, [''])
More information about the ghc-commits
mailing list