Expose the StableName constructor
authorDavid Feuer <david.feuer@gmail.com>
Tue, 21 Aug 2018 00:08:14 +0000 (20:08 -0400)
committerDavid Feuer <David.Feuer@gmail.com>
Tue, 21 Aug 2018 00:08:15 +0000 (20:08 -0400)
commit9c4e6c6b1affd410604f8f76ecf56abfcc5cccb6
treeb7ffc77ca1efc473c9c2c11f7d8d2609b1ab07e4
parent2671ec595b8a68d0dcb432834daa330cf21a68b9
Expose the StableName constructor

* Move the definition of `StableName` from `System.Mem.StableName`
  to a new `GHC.StableName` module.

* Expose the `StableName` data constructor from `GHC.StableName`.
  Once we have `UnliftedArray#`, this will enable `StableName`s to
  be stored in `UnliftedArray`s (from `primitive`) without unsafe
  coercions.

Reviewers: hvr, bgamari, andrewthad, osa1

Reviewed By: osa1

Subscribers: osa1, rwbarton, carter

GHC Trac Issues: #15535

Differential Revision: https://phabricator.haskell.org/D5078
libraries/base/GHC/StableName.hs [new file with mode: 0644]
libraries/base/System/Mem/StableName.hs
libraries/base/base.cabal