unison-hash-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Hash32

Description

A 512-bit hash, internally represented as base32hex.

Synopsis

Hash32 type

newtype Hash32 Source #

A 512-bit hash, internally represented as base32hex.

Some orphan instances provided in:

  • unison-util-base32hex-orphans-aeson
  • unison-util-base32hex-orphans-sqlite

Instances

Instances details
Show Hash32 Source # 
Instance details

Defined in Unison.Hash32

Eq Hash32 Source # 
Instance details

Defined in Unison.Hash32

Methods

(==) :: Hash32 -> Hash32 -> Bool #

(/=) :: Hash32 -> Hash32 -> Bool #

Ord Hash32 Source # 
Instance details

Defined in Unison.Hash32

From Hash Hash32 Source # 
Instance details

Defined in Unison.Hash32

Methods

from :: Hash -> Hash32 #

From Hash32 Text Source # 
Instance details

Defined in Unison.Hash32

Methods

from :: Hash32 -> Text #

From Hash32 Hash Source # 
Instance details

Defined in Unison.Hash32

Methods

from :: Hash32 -> Hash #

Conversions

The other Hash :)

Base32Hex

unsafeFromBase32Hex :: Base32Hex -> Hash32 Source #

Convert base32hex to a hash32 (asserting that it is a 512-bit hash).

toBase32Hex :: Hash32 -> Base32Hex Source #

Convert a hash32 to base32hex.

Text