ron-hs-0.4.0: RON format implementation in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Ron.Value

Synopsis

Documentation

data Value Source #

A RON value represented in haskell. This is the intermediate representation between string and your own type.

() is represented as Unit "". Anonymous records and tuples are similarily represented by having an empty name.

Tuple and Record contents are guaranteed to be not empty when parsed, since the empty contents denote a Unit. Attempting to dump an empty tuple or record may produce unexpected results, so don't do that, use Units instead.

Instances

Instances details
Arbitrary Value Source # 
Instance details

Defined in Data.Ron.Value

Methods

arbitrary :: Gen Value #

shrink :: Value -> [Value] #

Show Value Source # 
Instance details

Defined in Data.Ron.Value

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

NFData Value Source # 
Instance details

Defined in Data.Ron.Value

Methods

rnf :: Value -> () #

Eq Value Source # 
Instance details

Defined in Data.Ron.Value

Methods

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

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

Ord Value Source # 
Instance details

Defined in Data.Ron.Value

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 #

Hashable Value Source # 
Instance details

Defined in Data.Ron.Value

Methods

hashWithSalt :: Int -> Value -> Int #

hash :: Value -> Int #

Lift Value Source # 
Instance details

Defined in Data.Ron.Value

Methods

lift :: Quote m => Value -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Value -> Code m Value #