[commit: ghc] wip/rae: Test #10347 (aca0015)

git at git.haskell.org git at git.haskell.org
Sat Sep 19 20:25:21 UTC 2015


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

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/aca0015db6e2634602b97ac35a01f5db2db479a1/ghc

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

commit aca0015db6e2634602b97ac35a01f5db2db479a1
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Sat Sep 19 14:37:54 2015 -0400

    Test #10347


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

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

diff --git a/testsuite/tests/typecheck/should_compile/T10347.hs b/testsuite/tests/typecheck/should_compile/T10347.hs
new file mode 100644
index 0000000..9187a93
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T10347.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE -fwarn-unusued-bindings #-}
+
+module T10347 (N, mkN) where
+
+import Data.Coerce
+
+newtype N a = MkN Int
+
+mkN :: Int -> N a
+mkN = coerce
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index eff8403..6f34db4 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -474,3 +474,4 @@ test('T10632', normal, compile, [''])
 test('T10642', normal, compile, [''])
 test('T10744', normal, compile, [''])
 test('update-existential', normal, compile, [''])
+test('T10347', expect_broken(10347), compile, [''])



More information about the ghc-commits mailing list