Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Combinators or utilities shared by sync server AND client
Synopsis
- expectEntity :: Hash32 -> Transaction (Entity Text Hash32 Hash32)
- causalHashToHash32 :: CausalHash -> Hash32
- hash32ToCausalHash :: Hash32 -> CausalHash
- entityToTempEntity :: forall hash. (hash -> Hash32) -> Entity Text Hash32 hash -> TempEntity
- tempEntityToEntity :: TempEntity -> Entity Text Hash32 Hash32
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.