avro-0.4.7.0: Avro serialization support for Haskell

Safe HaskellNone
LanguageHaskell2010

Data.Avro.Types.Decimal

Documentation

newtype Decimal (p :: Nat) (s :: Nat) Source #

Constructors

Decimal 
Instances
Eq (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Types.Decimal

Methods

(==) :: Decimal p s -> Decimal p s -> Bool #

(/=) :: Decimal p s -> Decimal p s -> Bool #

Fractional (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Types.Decimal

Methods

(/) :: Decimal p s -> Decimal p s -> Decimal p s #

recip :: Decimal p s -> Decimal p s #

fromRational :: Rational -> Decimal p s #

Num (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Types.Decimal

Methods

(+) :: Decimal p s -> Decimal p s -> Decimal p s #

(-) :: Decimal p s -> Decimal p s -> Decimal p s #

(*) :: Decimal p s -> Decimal p s -> Decimal p s #

negate :: Decimal p s -> Decimal p s #

abs :: Decimal p s -> Decimal p s #

signum :: Decimal p s -> Decimal p s #

fromInteger :: Integer -> Decimal p s #

Ord (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Types.Decimal

Methods

compare :: Decimal p s -> Decimal p s -> Ordering #

(<) :: Decimal p s -> Decimal p s -> Bool #

(<=) :: Decimal p s -> Decimal p s -> Bool #

(>) :: Decimal p s -> Decimal p s -> Bool #

(>=) :: Decimal p s -> Decimal p s -> Bool #

max :: Decimal p s -> Decimal p s -> Decimal p s #

min :: Decimal p s -> Decimal p s -> Decimal p s #

Read (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Types.Decimal

Real (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Types.Decimal

Methods

toRational :: Decimal p s -> Rational #

Show (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Types.Decimal

Methods

showsPrec :: Int -> Decimal p s -> ShowS #

show :: Decimal p s -> String #

showList :: [Decimal p s] -> ShowS #

(KnownNat p, KnownNat s) => HasAvroSchema (Decimal p s) Source # 
Instance details

Defined in Data.Avro.HasAvroSchema

(KnownNat p, KnownNat s) => ToAvro (Decimal p s) Source # 
Instance details

Defined in Data.Avro.ToAvro

Methods

toAvro :: Decimal p s -> Value Schema Source #

(KnownNat p, KnownNat s) => EncodeAvro (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Encode

Methods

avro :: Decimal p s -> AvroM Source #

(KnownNat p, KnownNat s) => FromAvro (Decimal p s) Source # 
Instance details

Defined in Data.Avro.FromAvro

(KnownNat p, KnownNat s) => FromLazyAvro (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Decode.Lazy.FromLazyAvro

fromUnderlyingValue :: forall p s. KnownNat s => Integer -> Decimal p s Source #

underlyingValue :: forall s p. (KnownNat p, KnownNat s) => Decimal p s -> Maybe Int Source #