summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-05-06 08:22:37 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2014-05-06 08:22:37 +0100
commit13a330e87cf459311a7f164e1e57baf877741da6 (patch)
tree1a9ba7d12b5402b0a991c7a0ad43d014e0935a42 /testsuite/tests/deriving
parent5b73dc5fda1941d51827ea72614782c10a355a3d (diff)
downloadhaskell-13a330e87cf459311a7f164e1e57baf877741da6.tar.gz
Fix Trac #9071, an egregious bug in TcDeriv.inferConstraints
The constraints for Functor don't line up 1-1 with the arguments (they are fetched out from sub-terms of the type), but the surrounding code was mistakenly assuming they were in 1-1 association.
Diffstat (limited to 'testsuite/tests/deriving')
-rw-r--r--testsuite/tests/deriving/should_fail/all.T3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/all.T b/testsuite/tests/deriving/should_fail/all.T
index d503b6e266..99da88a55b 100644
--- a/testsuite/tests/deriving/should_fail/all.T
+++ b/testsuite/tests/deriving/should_fail/all.T
@@ -50,3 +50,6 @@ test('T7800', normal, multimod_compile_fail, ['T7800',''])
test('T5498', normal, compile_fail, [''])
test('T6147', normal, compile_fail, [''])
test('T8851', normal, compile_fail, [''])
+test('T9071', normal, multimod_compile_fail, ['T9071',''])
+test('T9071_2', normal, compile_fail, [''])
+