aeson-match-qq-1.5.2: Declarative JSON matchers.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Aeson.Match.QQ.Internal.Match

Synopsis

Documentation

match Source #

Arguments

:: Value Value

A matcher

-> Value

A Value from aeson

-> Either (NonEmpty Error) (HashMap Text Value)

Either a non-empty list of errors, or a mapping from _holes to their values.

Test if a matcher matches a Value.

newtype Path Source #

Constructors

Path 

Fields

Instances

Instances details
ToJSON Path Source # 
Instance details

Defined in Aeson.Match.QQ.Internal.Match

IsList Path Source # 
Instance details

Defined in Aeson.Match.QQ.Internal.Match

Associated Types

type Item Path #

Methods

fromList :: [Item Path] -> Path #

fromListN :: Int -> [Item Path] -> Path #

toList :: Path -> [Item Path] #

Show Path Source # 
Instance details

Defined in Aeson.Match.QQ.Internal.Match

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

Eq Path Source # 
Instance details

Defined in Aeson.Match.QQ.Internal.Match

Methods

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

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

Pretty Path Source # 
Instance details

Defined in Aeson.Match.QQ.Internal.Match

type Item Path Source # 
Instance details

Defined in Aeson.Match.QQ.Internal.Match