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

Unison.Codebase.SqliteCodebase.Conversions

Synopsis

Documentation

term2to1 :: forall m. Monad m => Hash -> (Reference -> m ConstructorType) -> Term Symbol -> m (Term Symbol Ann) Source #

referent2to1UsingCT :: ConstructorType -> Referent -> Referent Source #

Like referent2to1, but uses the provided constructor type directly

causalbranch2to1 :: Monad m => BranchCache m -> (Reference -> m ConstructorType) -> CausalBranch m -> m (Branch m) Source #

forces loading v1 branches even if they may not exist

referent2toshorthash1 :: Maybe Int -> Referent -> ShortHash Source #

Generates a v1 short hash from a v2 referent. Also shortens the hash to the provided length. If Nothing, it will include the full length hash.

reference2toshorthash1 :: Maybe Int -> Reference -> ShortHash Source #

Generates a v1 short hash from a v2 reference. Also shortens the hash to the provided length. If Nothing, it will include the full length hash.