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

Unison.Hashing.V2.Convert

Description

 
Synopsis

Documentation

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) -> Map v (TermReferenceId, Term v a, Type v a, extra) Source #

hashTermComponentsWithoutTypes :: forall v a. Var v => Map v (Term v a) -> 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.