avro-0.3.3.1: 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 # 
Instance details

Defined in Data.Avro.Types

Methods

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

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

Show f => Show (Value f) Source # 
Instance details

Defined in Data.Avro.Types

Methods

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

show :: Value f -> String #

showList :: [Value f] -> ShowS #

ToJSON (Value Type) # 
Instance details

Defined in Data.Avro.Schema

EncodeAvro (Value Type) Source # 
Instance details

Defined in Data.Avro.Encode

Methods

avro :: Value Type -> AvroM Source #