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

git at git.haskell.org git at git.haskell.org
Sun Sep 20 20:27:50 UTC 2015


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

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

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

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

    Test #10347


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

82097b7aa8ee629715014aae3358606ec3a11e1a
 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