aeson-diff-1.1.0.5: Extract and apply patches to JSON documents.

Safe HaskellNone
LanguageHaskell2010

Data.Aeson.Patch

Contents

Description

 
Synopsis

Documentation

newtype Patch #

Describes the changes between two JSON documents.

Constructors

Patch 
Instances
Eq Patch # 
Instance details

Defined in Data.Aeson.Patch

Methods

(==) :: Patch -> Patch -> Bool #

(/=) :: Patch -> Patch -> Bool #

Show Patch # 
Instance details

Defined in Data.Aeson.Patch

Methods

showsPrec :: Int -> Patch -> ShowS #

show :: Patch -> String #

showList :: [Patch] -> ShowS #

Semigroup Patch # 
Instance details

Defined in Data.Aeson.Patch

Methods

(<>) :: Patch -> Patch -> Patch #

sconcat :: NonEmpty Patch -> Patch #

stimes :: Integral b => b -> Patch -> Patch #

Monoid Patch # 
Instance details

Defined in Data.Aeson.Patch

Methods

mempty :: Patch #

mappend :: Patch -> Patch -> Patch #

mconcat :: [Patch] -> Patch #

ToJSON Patch # 
Instance details

Defined in Data.Aeson.Patch

FromJSON Patch # 
Instance details

Defined in Data.Aeson.Patch

Modification

modifyPointer :: (Pointer -> Pointer) -> Operation -> Operation #

Modify the Pointers in an Operation.

If the operation contains multiple pointers (i.e. a Mov or Cpy) then both will be modified.

modifyPointers :: (Pointer -> Pointer) -> Patch -> Patch #

Modify the pointers in the Operations of a Patch.

See modifyPointer for details.

Predicates