avers-0.0.2: empty

Safe HaskellNone




applyOperation :: Value -> Operation -> PatchM Value Source

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

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

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 Source

Resolve the path in the object.