jsonpatch-0.1.0.0: JSON Patch parsing and application
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.JSON.Pointer

Documentation

data Pointer Source #

Constructors

PointerEmpty

"" means whole-document

PointerPath [Token] Token

"[...]x" means path to a key or index x

NB. "/" naturally becomes PointerPath [] (K "")

PointerPathEnd [Token]

"[...]-" means path to last element of an array

Instances

Instances details
FromJSON Pointer Source # 
Instance details

Defined in Data.JSON.Pointer

Show Pointer Source # 
Instance details

Defined in Data.JSON.Pointer

Eq Pointer Source # 
Instance details

Defined in Data.JSON.Pointer

Methods

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

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