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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulecabal-install-3.18.1.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.