unison-codebase-sqlite-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

U.Codebase.Sqlite.Patch.Format

Synopsis

Documentation

type HashPatchLocalIds = PatchLocalIds' Text ComponentHash ComponentHash Source #

LocalIds type which can be used in hashing the Patch.

data SyncPatchFormat' parent text hash defn Source #

Constructors

SyncFull (PatchLocalIds' text hash defn) ByteString 
SyncDiff parent (PatchLocalIds' text hash defn) ByteString

p is the identity of the thing that the diff is relative to

applyPatchDiffs :: Patch -> [PatchDiff] -> Patch Source #

Apply a list of patch diffs to a patch, left to right.

localPatchToPatch :: PatchLocalIds -> LocalPatch -> Patch Source #

Type specialized version of localToPatch'.

localPatchToPatch' :: (Ord t, Ord h, Ord d) => PatchLocalIds' t h d -> Patch' LocalTextId LocalHashId LocalDefnId -> Patch' t h d Source #

Generic version of localPatchToPatch that works with any PatchLocalIds'.