json-query-0.1.0.0: Kitchen sink for querying JSON
Safe HaskellNone
LanguageHaskell2010

Json.Parser

Synopsis

Documentation

newtype Parser a Source #

Constructors

Parser 

Fields

Instances

Instances details
Monad Parser Source # 
Instance details

Defined in Json.Parser

Methods

(>>=) :: Parser a -> (a -> Parser b) -> Parser b #

(>>) :: Parser a -> Parser b -> Parser b #

return :: a -> Parser a #

Functor Parser Source # 
Instance details

Defined in Json.Parser

Methods

fmap :: (a -> b) -> Parser a -> Parser b #

(<$) :: a -> Parser b -> Parser a #

Applicative Parser Source # 
Instance details

Defined in Json.Parser

Methods

pure :: a -> Parser a #

(<*>) :: Parser (a -> b) -> Parser a -> Parser b #

liftA2 :: (a -> b -> c) -> Parser a -> Parser b -> Parser c #

(*>) :: Parser a -> Parser b -> Parser b #

(<*) :: Parser a -> Parser b -> Parser a #

newtype MemberParser a Source #

Constructors

MemberParser 

Instances

Instances details
Functor MemberParser Source # 
Instance details

Defined in Json.Parser

Methods

fmap :: (a -> b) -> MemberParser a -> MemberParser b #

(<$) :: a -> MemberParser b -> MemberParser a #

Applicative MemberParser Source # 
Instance details

Defined in Json.Parser

Run

Object Parsing

Arrays

smallArray :: (Value -> Parser a) -> SmallArray Value -> Parser (SmallArray a) Source #

Run the same parser against every element in a SmallArray. This adjusts the context at each element.

Specific Data Constructors

Trivial Combinators

Failing

Modified Context

contextually :: (Path -> Path) -> Parser a -> Parser a Source #

Run a parser in a modified context.