avro-0.3.0.5: Avro serialization support for Haskell

Safe HaskellNone
LanguageHaskell2010

Data.Avro.Types

Documentation

data Value f Source #

Constructors

Null 
Boolean !Bool 
Int !Int32 
Long !Int64 
Float !Float 
Double !Double 
Bytes !ByteString 
String !Text 
Array (Vector (Value f))

Dynamically enforced monomorphic type.

Map (HashMap Text (Value f))

Dynamically enforced monomorphic type

Record f (HashMap Text (Value f)) 
Union (NonEmpty f) f (Value f)

Set of union options, schema for selected option, and the actual value.

Fixed f !ByteString 
Enum f !Int Text

An enum is a set of the possible symbols (the schema) and the selected symbol

Instances

Eq f => Eq (Value f) Source # 

Methods

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

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

Show f => Show (Value f) Source # 

Methods

showsPrec :: Int -> Value f -> ShowS #

show :: Value f -> String #

showList :: [Value f] -> ShowS #

ToJSON (Value Type) # 
EncodeAvro (Value Type) Source # 

Methods

avro :: Value Type -> AvroM Source #