Remove redundant contexts from Foldable methods
authorDavid Feuer <David.Feuer@gmail.com>
Wed, 5 Nov 2014 07:42:59 +0000 (08:42 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Wed, 5 Nov 2014 07:54:44 +0000 (08:54 +0100)
commit0a8e8995fd31dd46fa9bdbc7f65984b51c8c13dc
tree7825083b19768f3317470f1ec520f0c2e431e0de
parent77f8221103a98b38384edd8c2caae6cc2c4ffd72
Remove redundant contexts from Foldable methods

New `Foldable` methods accidentally had `Foldable` contexts, which led
to type roles being assigned incorrectly and preventing GND from
deriving `Foldable` instances. Removing those fixes #9761.

Moreover, this patch takes advantage of this fix by deriving
`Foldable` (and `Eq`) for `UniqFM`.

Differential Revision: https://phabricator.haskell.org/D425
compiler/utils/UniqFM.lhs
libraries/base/Data/Foldable.hs
testsuite/tests/ghci/scripts/ghci025.stdout