Expose the StableName constructor
ClosedPublic

Authored by dfeuer on Aug 19 2018, 4:27 PM.

Details

Summary
  • 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 StableNames to be stored in UnliftedArrays (from primitive) without unsafe coercions.

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfeuer created this revision.Aug 19 2018, 4:27 PM
osa1 accepted this revision.Aug 20 2018, 2:09 AM
osa1 added a subscriber: osa1.

Once we have UnliftedArray#

Is this currently being implemented? Can you refer us to the ticket/diff?

Exporting the constructor from a GHC module makes sense to me.

This revision is now accepted and ready to land.Aug 20 2018, 2:09 AM

@osa1, I don't know of a ticket, but there's an accepted GHC proposal.

This revision was automatically updated to reflect the committed changes.