unison-share-api-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Sync.Common

Description

Combinators or utilities shared by sync server AND client

Synopsis

Documentation

expectEntity :: Hash32 -> Transaction (Entity Text Hash32 Hash32) Source #

Read an entity out of the database that we know is in main storage.

Type conversions

entityToTempEntity :: forall hash. (hash -> Hash32) -> Entity Text Hash32 hash -> TempEntity Source #

Convert an entity that came over the wire from Unison Share into an equivalent type that we can store in the temp_entity table.