avers-0.0.17.1: Server-side implementation of the Avers storage model

Safe HaskellNone
LanguageHaskell2010

Avers.Patching

Synopsis

Documentation

applyOperation :: Value -> Operation -> PatchM Value #

Apply the given op on the value. Can throw an exception if the operation is invalid.

rebaseOperation :: Value -> Operation -> [Patch] -> Maybe Operation #

Given an Operation which was created against a particular Value (content), rebase it on top of patches which were created against the very same content in parallel.

This function assumes that the patches apply cleanly to the content. Failure to do so results in a fatal error.

resolvePathIn :: Path -> Value -> Maybe Value #

Resolve the path in the object.