Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Patch = Patch {
- patchOperations :: [Operation]
- data Operation
- modifyPointer :: (Pointer -> Pointer) -> Operation -> Operation
- modifyPointers :: (Pointer -> Pointer) -> Patch -> Patch
- isAdd :: Operation -> Bool
- isRem :: Operation -> Bool
- isRep :: Operation -> Bool
- isMov :: Operation -> Bool
- isCpy :: Operation -> Bool
- isTst :: Operation -> Bool
Documentation
Describes the changes between two JSON documents.
An Operation
describes the operations which can appear as part of a JSON
Patch.
See RFC 6902 Section 4 http://tools.ietf.org/html/rfc6902#section-4.
Add | |
| |
Cpy | |
Mov | |
Rem | |
Rep | |
| |
Tst | |
|
Modification
modifyPointers :: (Pointer -> Pointer) -> Patch -> Patch Source #
Modify the pointers in the Operation
s of a Patch
.
See modifyPointer
for details.