hydra-0.8.0: Type-aware transformations for data and programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hydra.Json

Description

A JSON syntax model. See the BNF at https://www.json.org

Synopsis

Documentation

data Value Source #

A JSON value

Constructors

ValueArray [Value]

A JSON array

ValueBoolean Bool

A boolean value

ValueNull

JSON's null value

ValueNumber Double

A numeric value

ValueObject (Map String Value)

A JSON object as a set of key/value pairs

ValueString String

A string value

Instances

Instances details
Read Value Source # 
Instance details

Defined in Hydra.Json

Show Value Source # 
Instance details

Defined in Hydra.Json

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Eq Value Source # 
Instance details

Defined in Hydra.Json

Methods

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

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

Ord Value Source # 
Instance details

Defined in Hydra.Json

Methods

compare :: Value -> Value -> Ordering #

(<) :: Value -> Value -> Bool #

(<=) :: Value -> Value -> Bool #

(>) :: Value -> Value -> Bool #

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

max :: Value -> Value -> Value #

min :: Value -> Value -> Value #