avro-0.4.7.0: Avro serialization support for Haskell

Safe HaskellNone
LanguageHaskell2010

Data.Avro.Types.Value

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 (Vector 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.Value

Methods

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

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

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

Defined in Data.Avro.Types.Value

Methods

compare :: Value f -> Value f -> Ordering #

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

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

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

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

max :: Value f -> Value f -> Value f #

min :: Value f -> Value f -> Value f #

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

Defined in Data.Avro.Types.Value

Methods

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

show :: Value f -> String #

showList :: [Value f] -> ShowS #

Generic (Value f) Source # 
Instance details

Defined in Data.Avro.Types.Value

Associated Types

type Rep (Value f) :: Type -> Type #

Methods

from :: Value f -> Rep (Value f) x #

to :: Rep (Value f) x -> Value f #

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

Defined in Data.Avro.Deriving.Lift

Methods

lift :: Value f -> Q Exp #

ToJSON (Value Schema) Source # 
Instance details

Defined in Data.Avro.Schema

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

Defined in Data.Avro.Types.Value

Methods

rnf :: Value f -> () #

EncodeAvro (Value Schema) Source # 
Instance details

Defined in Data.Avro.Encode

Methods

avro :: Value Schema -> AvroM Source #

type Rep (Value f) Source # 
Instance details

Defined in Data.Avro.Types.Value

type Rep (Value f) = D1 (MetaData "Value" "Data.Avro.Types.Value" "avro-0.4.7.0-Bfa0q2x5HB9FRvrjrQk9PL" False) (((C1 (MetaCons "Null" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Boolean" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) :+: C1 (MetaCons "Int" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 Int32)))) :+: ((C1 (MetaCons "Long" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 Int64)) :+: C1 (MetaCons "Float" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 Float))) :+: (C1 (MetaCons "Double" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 Double)) :+: C1 (MetaCons "Bytes" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 ByteString))))) :+: ((C1 (MetaCons "String" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 Text)) :+: (C1 (MetaCons "Array" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector (Value f)))) :+: C1 (MetaCons "Map" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text (Value f)))))) :+: ((C1 (MetaCons "Record" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 f) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text (Value f)))) :+: C1 (MetaCons "Union" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector f)) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 f) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Value f))))) :+: (C1 (MetaCons "Fixed" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 f) :*: S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 ByteString)) :+: C1 (MetaCons "Enum" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 f) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))))))