HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulebasement-0.0.16Haskell2010

Basement.Base16

Synopsis
  • Packagebasement-0.0.16
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceBase16.hs

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.