HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulebasement-0.0.16Haskell2010

Basement.Base16

  • 1 type
  • 4 values
  • Packagebasement-0.0.16
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBase16.hs
valueunsafeConvertByte :: Word8# -> (# Word8#, Word8# #)
#

Convert a byte value in Word# to two Word#s containing the hexadecimal representation of the Word#

The output words# are guaranteed to be included in the 0 to 2^7-1 range

Note that calling convertByte with a value greater than 256 will cause segfault or other horrible effect. From GHC9.2, Word8# cannot be >= 256.