Derive Typable for promoted data constructors (Trac #8950)
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 7 Apr 2014 14:45:35 +0000 (15:45 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 7 Apr 2014 14:45:48 +0000 (15:45 +0100)
commit54e655536ecf7eba755b334058d5c22dab251bea
tree5743670fd43a4d3a4a8931d902ee024e7ea06cee
parentec3e949e29990c054850f621e14a9d77e3197aee
Derive Typable for promoted data constructors (Trac #8950)

I got sucked into a significant refactoring of the way that
Typeable instances are derived.  This makes it simpler and
more uniform.

I also improved the documentation in the user manual.  Typeable
really is different to other classes, and now gets its own subsection.
compiler/typecheck/TcDeriv.lhs
docs/users_guide/flags.xml
docs/users_guide/glasgow_exts.xml
testsuite/tests/deriving/should_fail/T2604.stderr
testsuite/tests/deriving/should_fail/T5863a.stderr
testsuite/tests/parser/should_compile/T5682.hs