zenc

GHC style name Z-encoding and Z-decoding

LTS Haskell 22.33:0.1.2
Stackage Nightly 2024-09-07:0.1.2
Latest on Hackage:0.1.2

See all snapshots zenc appears in

BSD-3-Clause licensed by GHC Team, Jason Dagit
Maintained by [email protected]
This version can be pinned in stack with:zenc-0.1.2@sha256:2b32c40a3c11f07f466604526aacad2a535309da11b203334dbf586333c13534,1350

Module documentation for 0.1.2

Depends on 1 package(full list with versions):

Text.Encoding.Z

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.