HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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