Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Ron.Value
Documentation
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 Unit
s instead.
Constructors
Integral !Integer | |
Floating !Scientific | |
Char !Char | |
String !Text | |
List !(Vector Value) | |
Map !(Map Value Value) | |
Unit !Text | |
Tuple !Text !(Vector Value) | |
Record !Text !(Map Text Value) |