diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2015-06-02 11:38:28 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2015-06-02 11:38:28 +0100 |
commit | b1b2b44a86a34dae9eadd27af507c8b2c847ae2d (patch) | |
tree | da0208234befc684e75ddd52976dd00847e00baa | |
parent | d6c01faed26f05ff2023587eccef822f91da23ad (diff) | |
download | haskell-b1b2b44a86a34dae9eadd27af507c8b2c847ae2d.tar.gz |
Test Trac #10423
-rw-r--r-- | testsuite/tests/typecheck/should_compile/T10423.hs | 9 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_compile/all.T | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T10423.hs b/testsuite/tests/typecheck/should_compile/T10423.hs new file mode 100644 index 0000000000..5a8ff0251f --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T10423.hs @@ -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) diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T index 2f257eafee..12e26128bc 100644 --- a/testsuite/tests/typecheck/should_compile/all.T +++ b/testsuite/tests/typecheck/should_compile/all.T @@ -456,3 +456,4 @@ test('T10009', normal, compile, ['']) test('T10390', normal, compile, ['']) test('T8555', normal, compile, ['']) test('T8799', normal, compile, ['']) +test('T10423', normal, compile, ['']) |