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

Modulecabal-install-3.16.0.0Haskell2010

Distribution.Client.HashValue

  • 1 type
  • 5 values
newtypenewtype HashValue
#
Instances6Eq, Show, Generic, Binary, Structured, Rep

Truncate a 32 byte SHA256 hash to

For example 20 bytes render as 40 hex chars, which we use for unit-ids. Or even 4 bytes for hashedInstalledPackageIdShort

valuehashFromTUF :: Hash -> HashValue
#

Convert a hash from TUF metadata into a PackageSourceHash.

Note that TUF hashes don't necessarily have to be SHA256, since it can support new algorithms in future.