[commit: ghc] master: Test case for #10428. (6644039)
git at git.haskell.org
git at git.haskell.org
Tue Jun 16 18:22:53 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/66440396bef30e5d6c7b536b552cc4f557d70691/ghc
>---------------------------------------------------------------
commit 66440396bef30e5d6c7b536b552cc4f557d70691
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Mon Jun 8 16:52:59 2015 -0400
Test case for #10428.
>---------------------------------------------------------------
66440396bef30e5d6c7b536b552cc4f557d70691
testsuite/tests/typecheck/should_compile/T10428.hs | 5 +++++
testsuite/tests/typecheck/should_compile/all.T | 1 +
2 files changed, 6 insertions(+)
diff --git a/testsuite/tests/typecheck/should_compile/T10428.hs b/testsuite/tests/typecheck/should_compile/T10428.hs
new file mode 100644
index 0000000..2b5201b
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T10428.hs
@@ -0,0 +1,5 @@
+module T10428 where
+
+import Data.Coerce
+coerceNewtype :: (Coercible (o r) (n m' r)) => [o r] -> [n m' r]
+coerceNewtype = coerce
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index e26d27a..17a3918 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -461,3 +461,4 @@ test('T10489', normal, compile, [''])
test('T10348', normal, compile, [''])
test('T10494', normal, compile, [''])
test('T10493', normal, compile, [''])
+test('T10428', normal, compile, [''])
More information about the ghc-commits
mailing list