Expose the StableName constructor
authorDavid Feuer <david.feuer@gmail.com>
Tue, 21 Aug 2018 00:08:14 +0000 (20:08 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Aug 2018 22:50:28 +0000 (18:50 -0400)
commit768cc53d73e46954b01df69c6b215a41b3533f56
treefcce8dde9eee0f5cdc243c0ce0c47adfb647c016
parente57a15d820b44751fcfc14c056ae284caab697a6
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

(cherry picked from commit 9c4e6c6b1affd410604f8f76ecf56abfcc5cccb6)
libraries/base/GHC/StableName.hs [new file with mode: 0644]
libraries/base/System/Mem/StableName.hs
libraries/base/base.cabal