unison-parser-typechecker-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Codebase.ShortCausalHash

Synopsis

Documentation

fromFullHash :: Coercible h Hash => h -> ShortCausalHash Source #

This allows a full hash to be preserved as a ShortCausalHash.

ShortCausalHash is used for input when we expect a user to enter a hash on the command line, so they aren’t required to enter the full hash. However, these inputs may also come from an internal source, and in such cases, there is no reason to truncate the hash.

newtype ShortCausalHash Source #

Causal Hash Prefix

Constructors

ShortCausalHash 

Fields

Instances

Instances details
Generic ShortCausalHash Source # 
Instance details

Defined in Unison.Codebase.ShortCausalHash

Associated Types

type Rep ShortCausalHash :: Type -> Type #

Show ShortCausalHash Source # 
Instance details

Defined in Unison.Codebase.ShortCausalHash

Eq ShortCausalHash Source # 
Instance details

Defined in Unison.Codebase.ShortCausalHash

Ord ShortCausalHash Source # 
Instance details

Defined in Unison.Codebase.ShortCausalHash

From ShortCausalHash Text Source # 
Instance details

Defined in Unison.Codebase.ShortCausalHash

Methods

from :: ShortCausalHash -> Text #

type Rep ShortCausalHash Source # 
Instance details

Defined in Unison.Codebase.ShortCausalHash

type Rep ShortCausalHash = D1 ('MetaData "ShortCausalHash" "Unison.Codebase.ShortCausalHash" "unison-parser-typechecker-0.0.0-KNkVGbTXlis2lnVjsRIJUx" 'True) (C1 ('MetaCons "ShortCausalHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "toText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))