Remove Hoopl.Unique
authorMichal Terepeta <michal.terepeta@gmail.com>
Fri, 26 Jan 2018 18:09:29 +0000 (13:09 -0500)
committerBen Gamari <ben@smart-cactus.org>
Fri, 26 Jan 2018 19:37:28 +0000 (14:37 -0500)
commitbd58e290a4dc3beed2e63fbe549aadbdf17ae437
treecc099f9915990cfa01ac055ea198daec32e6960b
parentcacba075d72473511f6924c6505952ff12a20316
Remove Hoopl.Unique

Reasons to remove:
- It's confusing - we already have a widely used `Unique` module in
  `basicTypes/` that defines a newtype called `Unique`
- `Hoopl.Unique` is not actually used much

I've also moved the `Unique{Map,Set}` from `Hoopl.Unique` to
`Hoopl.Collections` to keep things together. But that module is also a
bit funny - it defines two type-classes that have only one instance
each. So we should probably either remove them or use them more
widely... In any case, that will be a separate change.

Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
Test Plan: ./validate

Reviewers: bgamari, simonmar

Reviewed By: bgamari

Subscribers: kavon, rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4331
compiler/cmm/BlockId.hs
compiler/cmm/Hoopl/Collections.hs
compiler/cmm/Hoopl/Label.hs
compiler/cmm/Hoopl/Unique.hs [deleted file]
compiler/ghc.cabal.in