HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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.