avro-0.5.2.0: Avro serialization support for Haskell

Safe HaskellNone
LanguageHaskell2010

Data.Avro.Schema.Decimal

Documentation

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

Constructors

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

Defined in Data.Avro.Schema.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.Schema.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.Schema.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.Schema.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.Schema.Decimal

Real (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Schema.Decimal

Methods

toRational :: Decimal p s -> Rational #

Show (Decimal p s) Source # 
Instance details

Defined in Data.Avro.Schema.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.Encoding.ToAvro

Methods

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

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

Defined in Data.Avro.Encoding.FromAvro

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 #