| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Winery.Term
- data Term
- = TUnit
- | TBool !Bool
- | TChar !Char
- | TWord8 !Word8
- | TWord16 !Word16
- | TWord32 !Word32
- | TWord64 !Word64
- | TInt8 !Int8
- | TInt16 !Int16
- | TInt32 !Int32
- | TInt64 !Int64
- | TInteger !Integer
- | TFloat !Float
- | TDouble !Double
- | TBytes !ByteString
- | TText !Text
- | TList [Term]
- | TProduct [Term]
- | TRecord [(Text, Term)]
- | TVariant !Text [Term]
- decodeTerm :: Deserialiser Term
- deserialiseTerm :: ByteString -> Either (Doc AnsiStyle) (Schema, Term)
Documentation
Common representation for any winery data. Handy for prettyprinting winery-serialised data.
Constructors
| TUnit | |
| TBool !Bool | |
| TChar !Char | |
| TWord8 !Word8 | |
| TWord16 !Word16 | |
| TWord32 !Word32 | |
| TWord64 !Word64 | |
| TInt8 !Int8 | |
| TInt16 !Int16 | |
| TInt32 !Int32 | |
| TInt64 !Int64 | |
| TInteger !Integer | |
| TFloat !Float | |
| TDouble !Double | |
| TBytes !ByteString | |
| TText !Text | |
| TList [Term] | |
| TProduct [Term] | |
| TRecord [(Text, Term)] | |
| TVariant !Text [Term] |
decodeTerm :: Deserialiser Term Source #
Deserialiser for a Term.
deserialiseTerm :: ByteString -> Either (Doc AnsiStyle) (Schema, Term) Source #
Deserialise a serialised Bytestring.