HORIZON HASKELLDocslts/ghc-10.0.xc62e4de2026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · c62e4de · 2026-10-19

Modulehnix-store-core-0.8.0.0Haskell2010

System.Nix.Hash.Truncation

  • 1 value

Bytewise truncation of a Digest.

When truncation length is greater than the length of the bytestring but less than twice the bytestring length, truncation splits the bytestring into a head part (truncation length) and tail part (leftover part), right-pads the leftovers with 0 to the truncation length, and combines the two strings bytewise with xor.