Use Data.Functor.Const to implement Data.Data internals
authorRyan Scott <ryan.gl.scott@gmail.com>
Sat, 6 Aug 2016 15:08:31 +0000 (11:08 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Sat, 6 Aug 2016 15:08:31 +0000 (11:08 -0400)
commit7a2e933b77a67d64e80559674852c5a308cde976
tree219065add15ba313c661acd1c4333c042a1c03d5
parentbd5106441bb91bbadadd2ffd4e9b77bd8f50772c
Use Data.Functor.Const to implement Data.Data internals

Summary:
`Data.Data` uses an internal datatype `CONST`, which can be replaced
completely by `Const` from `Data.Functor.Const`.

Reviewers: austin, bgamari, hvr

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2396
libraries/base/Data/Data.hs