Fix Show derivation in the presence of RebindableSyntax/OverloadedStrings
authorRyan Scott <ryan.gl.scott@gmail.com>
Sat, 15 Oct 2016 15:11:20 +0000 (11:11 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Sat, 15 Oct 2016 15:11:21 +0000 (11:11 -0400)
commitb501709ed79ba03e72518ef9dd101ce2d03db2de
tree0b3c3cfa724c39fdcaaf3426f6cc4044d4f1b7f6
parente39589e2e4f788565c4a7f02cb85802214a95757
Fix Show derivation in the presence of RebindableSyntax/OverloadedStrings

Summary:
To fix this issue, we simply disable `RebindableSyntax` whenever we rename
the code generated from a deriving clause.

Fixes #12688.

Test Plan: make test TEST=T12688

Reviewers: simonpj, austin, bgamari

Reviewed By: simonpj, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2591

GHC Trac Issues: #12688
compiler/typecheck/TcDeriv.hs
compiler/typecheck/TcRnMonad.hs
docs/users_guide/8.0.2-notes.rst
docs/users_guide/glasgow_exts.rst
testsuite/tests/deriving/should_compile/T12688.hs [new file with mode: 0644]
testsuite/tests/deriving/should_compile/all.T