binrep-0.8.0: Encode precise binary representations directly in types
Safe HaskellSafe-Inferred
LanguageGHC2021

Binrep.Generic

Synopsis

Documentation

nullTermCstrPfxTag :: String -> NullTerminated ByteString Source #

reallyUnsafeRefine : safe assuming Haskell constructor names are UTF-8 with no null bytes allowed

Turn a constructor name into a prefix tag by adding a null terminator.

Not common in binary data representations, but safe and useful for debugging.