Make FieldLabelEnv a deterministic set
authorBartosz Nitka <niteria@gmail.com>
Fri, 3 Jun 2016 16:11:10 +0000 (09:11 -0700)
committerBartosz Nitka <niteria@gmail.com>
Fri, 3 Jun 2016 16:11:15 +0000 (09:11 -0700)
commit9cc6fac5c096eb4120173495faf2c948f7a28487
treedbc1d85be007ce946df89f39b462801ca59a7303
parent1d1987e088052eefd25dbc693846222499899749
Make FieldLabelEnv a deterministic set

This lets us kill fsEnvElts function which is nondeterministic.
We also get better guarantees than just comments.
We don't do lookups, but I believe a set is needed for deduplication.

Test Plan: ./validate

Reviewers: bgamari, mpickering, austin, simonmar

Reviewed By: simonmar

Subscribers: thomie

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

GHC Trac Issues: #4012
compiler/basicTypes/FieldLabel.hs
compiler/iface/MkIface.hs
compiler/types/TyCon.hs
compiler/utils/FastStringEnv.hs
compiler/utils/UniqDFM.hs