json5hs-0.1.2.2: Serialising to and from JSON5

Safe HaskellSafe
LanguageHaskell98

Text.JSON5.Types

Contents

Description

The types to encode Haskell values.

Synopsis

JSON5 Types

data JSValue Source #

Instances
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

Wrapper Types

newtype JSObject a Source #

Constructors

JSONObject 

Fields

Instances
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