Test Trac #10423
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 2 Jun 2015 10:38:28 +0000 (11:38 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 2 Jun 2015 10:38:28 +0000 (11:38 +0100)
testsuite/tests/typecheck/should_compile/T10423.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T10423.hs b/testsuite/tests/typecheck/should_compile/T10423.hs
new file mode 100644 (file)
index 0000000..5a8ff02
--- /dev/null
@@ -0,0 +1,9 @@
+{-# LANGUAGE FlexibleInstances, TypeFamilies, MultiParamTypeClasses #-}
+
+module T10423 where
+
+class Monad m => Testable m a
+
+newtype Prop m = MkProp (m Int)
+
+instance (Monad m, m ~ n) => Testable n (Prop m)
index 2f257ea..12e2612 100644 (file)
@@ -456,3 +456,4 @@ test('T10009', normal, compile, [''])
 test('T10390', normal, compile, [''])
 test('T8555', normal, compile, [''])
 test('T8799', normal, compile, [''])
+test('T10423', normal, compile, [''])