| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Data.Aeson.Patch
Contents
Description
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.
Constructors
| Patch | |
Fields 
  | |
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.
Constructors
| Add | |
Fields 
  | |
| Cpy | |
Fields  | |
| Mov | |
Fields  | |
| Rem | |
Fields  | |
| Rep | |
Fields 
  | |
| Tst | |
Fields 
  | |
Instances
Modification
modifyPointers :: (Pointer -> Pointer) -> Patch -> Patch Source #
Modify the pointers in the Operations of a Patch.
See modifyPointer for details.