Add missing type representations
authorBen Gamari <bgamari.foss@gmail.com>
Wed, 13 Jan 2016 13:53:02 +0000 (14:53 +0100)
committerBen Gamari <ben@smart-cactus.org>
Wed, 13 Jan 2016 13:53:03 +0000 (14:53 +0100)
commitac3cf68c378410724973e64be7198bb8720a6809
tree7c7868b4411f7062391df13af0a8f1e47d13266b
parentd44bc5c061e3f0ba459f835aba683c0366187b74
Add missing type representations

Previously we were missing `Typeable` representations for several
wired-in types (and their promoted constructors). These include,

 * `Nat`
 * `Symbol`
 * `':`
 * `'[]`

Moreover, some constructors were incorrectly identified as being defined
in `GHC.Types` whereas they were in fact defined in `GHC.Prim`.

Ultimately this is just a temporary band-aid as there is general
agreement that we should eliminate the manual definition of these
representations entirely.

Test Plan: Validate

Reviewers: austin, hvr

Subscribers: thomie

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

GHC Trac Issues: #11120
compiler/iface/BuildTyCl.hs
compiler/prelude/PrelNames.hs
compiler/prelude/TysWiredIn.hs
libraries/base/Data/Typeable/Internal.hs
libraries/ghc-prim/GHC/Types.hs