Add public rnf/hash operations to TypeRep/TyCon
authorHerbert Valerio Riedel <hvr@gnu.org>
Thu, 5 Mar 2015 17:56:03 +0000 (11:56 -0600)
committerAustin Seipp <austin@well-typed.com>
Thu, 5 Mar 2015 17:56:03 +0000 (11:56 -0600)
commit56e0ac98c3a439b8757a2e886db259270bdc85f0
tree239349db35fd802696950c8447cae093a661701b
parent8a5d32057fb899810d5fb614e57a319b4a951afc
Add public rnf/hash operations to TypeRep/TyCon

Summary:
`TyCon` and `TypeRep` are supposed to be abstract, by providing these
additional few public operations the need to import
`Data.Typeable.Internal` is reduced, and future changes to the internal
structure of `TypeRep`/`TyCon` shouldn't require changes in packages such as
`deepseq` or `hashable` anymore (hopefully).

Reviewers: ekmett, simonpj, tibbe, austin

Reviewed By: ekmett, simonpj, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D699
libraries/base/Data/Typeable.hs
libraries/base/Data/Typeable/Internal.hs
libraries/base/changelog.md