Test #10347
authorRichard Eisenberg <eir@cis.upenn.edu>
Sat, 19 Sep 2015 18:37:54 +0000 (14:37 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Mon, 21 Sep 2015 01:39:13 +0000 (21:39 -0400)
testsuite/tests/typecheck/should_compile/T10347.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T10347.hs b/testsuite/tests/typecheck/should_compile/T10347.hs
new file mode 100644 (file)
index 0000000..9187a93
--- /dev/null
@@ -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
index eff8403..6f34db4 100644 (file)
@@ -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, [''])