[commit: ghc] master: Test #10347 (1a13551)
git at git.haskell.org
git at git.haskell.org
Mon Sep 21 01:43:38 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/1a135511344f14deca314cb38cedda4bcfe53dc0/ghc
>---------------------------------------------------------------
commit 1a135511344f14deca314cb38cedda4bcfe53dc0
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Sat Sep 19 14:37:54 2015 -0400
Test #10347
>---------------------------------------------------------------
1a135511344f14deca314cb38cedda4bcfe53dc0
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