ghc-boot-9.3: Shared functionality between GHC and its boot libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Utils.Encoding

Synopsis

UTF-8

utf8EncodeChar :: (Int# -> Word8# -> State# s -> State# s) -> Char -> ST s Int Source #

Z-encoding

zEncodeString :: UserString -> EncodedString Source #

zDecodeString :: EncodedString -> UserString Source #

Base62-encoding

toBase62Padded :: Word64 -> String Source #

Converts a 64-bit word into a base-62 string