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

Unison.Hashing.V2.Convert

Description

 
Synopsis

Documentation

crashOnHashingWarning :: HasCallStack => ([HashingWarning], a) -> a #

Crash if hashing produced any warnings.

In the future we will hopefully prevent this error entirely.

hashDecls :: Var v => Map v (Decl v a) -> ResolutionResult a [(v, Id, Decl v a)] Source #

hashClosedTerm :: Var v => Term v a -> Id Source #

hashTermComponents :: forall v a extra. Var v => Map v (Term v a, Type v a, extra) -> ([HashingWarning], Map v (TermReferenceId, Term v a, Type v a, extra)) Source #

hashTermComponentsWithoutTypes :: forall v a. Var v => Map v (Term v a) -> ([HashingWarning], Map v (TermReferenceId, Term v a)) Source #

This shouldn't be used when storing terms in the codebase, as it doesn't incorporate the type into the hash. this should only be used in cases where you just need a way to identify some terms that you have, but won't be saving them.