Refactor handling of SPECIALISE pragmas (Trac #5821)
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 14 Jan 2015 10:58:22 +0000 (10:58 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 14 Jan 2015 16:08:55 +0000 (16:08 +0000)
commit788413297eaddfa259d2ab76459a916a62d2604c
treeff1086898f327c4faaf539a9d7df249b83b03de6
parente4cb8370eb910f187a536c208fba15dcf331c910
Refactor handling of SPECIALISE pragmas (Trac #5821)

The provoking cause was Trac #5821, which concerned
type families, but in fixing it I did the usual round
of tidying up and docmenting.

The main comment is now
    Note [Handling SPECIALISE pragmas]
in TcBinds.

It is "wrinkle 2" that fixes #5821.
compiler/deSugar/DsBinds.hs
compiler/typecheck/TcBinds.hs
compiler/typecheck/TcInstDcls.hs
compiler/typecheck/TcRnTypes.hs
testsuite/tests/parser/should_fail/T7848.stderr