| Stability | experimental |
|---|---|
| Maintainer | Lars Petersen <info@lars-petersen.net> |
Data.Binary.Generic
Description
The following primitive datatypes are used as basecases and get serialized
according to their instances of Data.Binary:
-
Char -
Int -
Word -
Integer -
Int8 -
Int16 -
Int32 -
Int64 -
Word8 -
Word16 -
Word32 -
Word64 -
ByteString -
Textencoded as Utf8
Float and Double are serialized according to IEEE754.
For any algebraic datatype just make it an instance of class Data.Data
by simply deriving Data on definition or try stand-alone-deriving.