json5hs-0.1.3.0: Serialising to and from JSON5
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.JSON5.Types

Description

The types to encode Haskell values.

Synopsis

JSON5 Types

data JSValue Source #

Instances

Instances details
Eq JSValue Source # 
Instance details

Defined in Text.JSON5.Types

Methods

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

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

Ord JSValue Source # 
Instance details

Defined in Text.JSON5.Types

Read JSValue Source # 
Instance details

Defined in Text.JSON5.Types

Show JSValue Source # 
Instance details

Defined in Text.JSON5.Types

IsString JSValue Source # 
Instance details

Defined in Text.JSON5.Types

Methods

fromString :: String -> JSValue #

JSON5 JSValue Source #

To ensure we generate valid JSON5, we map Haskell types to JSValue internally, then pretty print that.

Instance details

Defined in Text.JSON5

data JSNumber Source #

Instances

Instances details
Eq JSNumber Source # 
Instance details

Defined in Text.JSON5.Types

Ord JSNumber Source # 
Instance details

Defined in Text.JSON5.Types

Read JSNumber Source # 
Instance details

Defined in Text.JSON5.Types

Show JSNumber Source # 
Instance details

Defined in Text.JSON5.Types

Wrapper Types

newtype JSString Source #

Constructors

JSONString 

Fields

newtype JSObject a Source #

Constructors

JSONObject 

Fields

Instances

Instances details
Eq a => Eq (JSObject a) Source # 
Instance details

Defined in Text.JSON5.Types

Methods

(==) :: JSObject a -> JSObject a -> Bool #

(/=) :: JSObject a -> JSObject a -> Bool #

Ord a => Ord (JSObject a) Source # 
Instance details

Defined in Text.JSON5.Types

Methods

compare :: JSObject a -> JSObject a -> Ordering #

(<) :: JSObject a -> JSObject a -> Bool #

(<=) :: JSObject a -> JSObject a -> Bool #

(>) :: JSObject a -> JSObject a -> Bool #

(>=) :: JSObject a -> JSObject a -> Bool #

max :: JSObject a -> JSObject a -> JSObject a #

min :: JSObject a -> JSObject a -> JSObject a #

Read a => Read (JSObject a) Source # 
Instance details

Defined in Text.JSON5.Types

Show a => Show (JSObject a) Source # 
Instance details

Defined in Text.JSON5.Types

Methods

showsPrec :: Int -> JSObject a -> ShowS #

show :: JSObject a -> String #

showList :: [JSObject a] -> ShowS #

JSON5 a => JSON5 (JSObject a) Source # 
Instance details

Defined in Text.JSON5