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

U.Codebase.Sqlite.Patch.Full

Synopsis

Documentation

type Patch = Patch' TextId HashId ObjectId Source #

LocalPatch
  { termEdits :: Map ReferentH (Set TermEdit),
    typeEdits :: Map ReferenceH (Set TypeEdit)
  }

type HashPatch = Patch' Text ComponentHash ComponentHash Source #

A version of Patch' which can be used for hashing.

type LocalPatch = Patch' LocalTextId LocalHashId LocalDefnId Source #

LocalPatch
  { termEdits :: Map LocalReferentH (Set LocalTermEdit),
    typeEdits :: Map LocalReferenceH (Set LocalTypeEdit)
  }

data Patch' t h o Source #

Constructors

Patch 

Fields

patchT_ :: (Ord t', Ord h, Ord o) => Traversal (Patch' t h o) (Patch' t' h o) t t' Source #

patchH_ :: (Ord t, Ord h') => Traversal (Patch' t h o) (Patch' t h' o) h h' Source #

patchO_ :: (Ord t, Ord o') => Traversal (Patch' t h o) (Patch' t h o') o o' Source #

trimap :: (Ord t', Ord h', Ord o') => (t -> t') -> (h -> h') -> (o -> o') -> Patch' t h o -> Patch' t' h' o' Source #