zenc: GHC style name Z-encoding and Z-decoding

[ bsd3, library, text ] [ Propose Tags ]

Implements GHC's name mangling. This code was taken directly from the GHC source.

[Skip to Readme]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.1.1, 0.1.2
Dependencies base (>=3 && <=5) [details]
License BSD-3-Clause
Copyright GHC HQ
Author GHC Team, Jason Dagit
Maintainer dagitj@gmail.com
Category Text
Source repo this: git clone https://github.com/dagit/zenc.git(tag 0.1.2)
Uploaded by JasonDagit at 2021-06-21T23:03:15Z
Distributions Arch:0.1.2, LTSHaskell:0.1.2, NixOS:0.1.2, Stackage:0.1.2
Reverse Dependencies 5 direct, 34 indirect [details]
Downloads 6504 total (33 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for zenc-0.1.2

[back to package description]


The Z-encoding

zEncodeString is a name-encoding and decoding function. It encodes any ascii string into a string that is acceptable as a C name. This is code was originally part of GHC and used right before emitting a symbol name into the compiled C or asm code. This library was created as this encoding is useful when working with GHC compiled code or generally when C-compatible name mangling is desired.

zDecodeString is the inverse operation.