jsonpatch-0.1.0.0: JSON Patch parsing and application
Copyright(c) 2025 Patrick Brisbin
LicenseAGPL-3
Maintainerpbrisbin@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.JSON.Patch.Type

Description

 

Documentation

data Patch Source #

Instances

Instances details
FromJSON Patch Source # 
Instance details

Defined in Data.JSON.Patch.Type

Show Patch Source # 
Instance details

Defined in Data.JSON.Patch.Type

Methods

showsPrec :: Int -> Patch -> ShowS #

show :: Patch -> String #

showList :: [Patch] -> ShowS #

Eq Patch Source # 
Instance details

Defined in Data.JSON.Patch.Type

Methods

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

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

data AddOp Source #

Constructors

AddOp 

Fields

Instances

Instances details
FromJSON AddOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Generic AddOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Associated Types

type Rep AddOp :: Type -> Type #

Methods

from :: AddOp -> Rep AddOp x #

to :: Rep AddOp x -> AddOp #

Show AddOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Methods

showsPrec :: Int -> AddOp -> ShowS #

show :: AddOp -> String #

showList :: [AddOp] -> ShowS #

Eq AddOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Methods

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

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

type Rep AddOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

type Rep AddOp = D1 ('MetaData "AddOp" "Data.JSON.Patch.Type" "jsonpatch-0.1.0.0-KXsRr7GOCKcJ2q7ltMVO0p" 'False) (C1 ('MetaCons "AddOp" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pointer) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)))

newtype RemoveOp Source #

Constructors

RemoveOp 

Fields

Instances

Instances details
FromJSON RemoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Generic RemoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Associated Types

type Rep RemoveOp :: Type -> Type #

Methods

from :: RemoveOp -> Rep RemoveOp x #

to :: Rep RemoveOp x -> RemoveOp #

Show RemoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Eq RemoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

type Rep RemoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

type Rep RemoveOp = D1 ('MetaData "RemoveOp" "Data.JSON.Patch.Type" "jsonpatch-0.1.0.0-KXsRr7GOCKcJ2q7ltMVO0p" 'True) (C1 ('MetaCons "RemoveOp" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pointer)))

data ReplaceOp Source #

Constructors

ReplaceOp 

Fields

Instances

Instances details
FromJSON ReplaceOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Generic ReplaceOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Associated Types

type Rep ReplaceOp :: Type -> Type #

Show ReplaceOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Eq ReplaceOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

type Rep ReplaceOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

type Rep ReplaceOp = D1 ('MetaData "ReplaceOp" "Data.JSON.Patch.Type" "jsonpatch-0.1.0.0-KXsRr7GOCKcJ2q7ltMVO0p" 'False) (C1 ('MetaCons "ReplaceOp" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pointer) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)))

data CopyOp Source #

Constructors

CopyOp 

Fields

Instances

Instances details
FromJSON CopyOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Generic CopyOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Associated Types

type Rep CopyOp :: Type -> Type #

Methods

from :: CopyOp -> Rep CopyOp x #

to :: Rep CopyOp x -> CopyOp #

Show CopyOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Eq CopyOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Methods

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

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

type Rep CopyOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

type Rep CopyOp = D1 ('MetaData "CopyOp" "Data.JSON.Patch.Type" "jsonpatch-0.1.0.0-KXsRr7GOCKcJ2q7ltMVO0p" 'False) (C1 ('MetaCons "CopyOp" 'PrefixI 'True) (S1 ('MetaSel ('Just "from") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pointer) :*: S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pointer)))

data MoveOp Source #

Constructors

MoveOp 

Fields

Instances

Instances details
FromJSON MoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Generic MoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Associated Types

type Rep MoveOp :: Type -> Type #

Methods

from :: MoveOp -> Rep MoveOp x #

to :: Rep MoveOp x -> MoveOp #

Show MoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Eq MoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Methods

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

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

type Rep MoveOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

type Rep MoveOp = D1 ('MetaData "MoveOp" "Data.JSON.Patch.Type" "jsonpatch-0.1.0.0-KXsRr7GOCKcJ2q7ltMVO0p" 'False) (C1 ('MetaCons "MoveOp" 'PrefixI 'True) (S1 ('MetaSel ('Just "from") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pointer) :*: S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pointer)))

data TestOp Source #

Constructors

TestOp 

Fields

Instances

Instances details
FromJSON TestOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Generic TestOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Associated Types

type Rep TestOp :: Type -> Type #

Methods

from :: TestOp -> Rep TestOp x #

to :: Rep TestOp x -> TestOp #

Show TestOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Eq TestOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

Methods

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

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

type Rep TestOp Source # 
Instance details

Defined in Data.JSON.Patch.Type

type Rep TestOp = D1 ('MetaData "TestOp" "Data.JSON.Patch.Type" "jsonpatch-0.1.0.0-KXsRr7GOCKcJ2q7ltMVO0p" 'False) (C1 ('MetaCons "TestOp" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Pointer) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Value)))