Serialising Names using the GHC API is not possible
In order to serialise a Name
using Binary
you have to initialise UserData
. This isn't possible because the constructors necessary to write the symbol table and dictionary are not exported. However, it turns out to be easy to extract the necessary logic and provide two nice wrapper functions to provide this functionality.
This makes it possible to serialise Names when writing source plugins for instance.
https://phabricator.haskell.org/D4782
Trac metadata
Trac field | Value |
---|---|
Version | 8.4.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |