avro-0.4.7.0: Avro serialization support for Haskell
Data.Avro.Types.Decimal
newtype Decimal (p :: Nat) (s :: Nat) Source #
Constructors
Fields
Defined in Data.Avro.Types.Decimal
Methods
(==) :: Decimal p s -> Decimal p s -> Bool #
(/=) :: Decimal p s -> Decimal p s -> Bool #
(/) :: Decimal p s -> Decimal p s -> Decimal p s #
recip :: Decimal p s -> Decimal p s #
fromRational :: Rational -> 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 -> 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 #
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 #
readsPrec :: Int -> ReadS (Decimal p s) #
readList :: ReadS [Decimal p s] #
readPrec :: ReadPrec (Decimal p s) #
readListPrec :: ReadPrec [Decimal p s] #
toRational :: Decimal p s -> Rational #
showsPrec :: Int -> Decimal p s -> ShowS #
show :: Decimal p s -> String #
showList :: [Decimal p s] -> ShowS #
Defined in Data.Avro.HasAvroSchema
schema :: Tagged (Decimal p s) Schema Source #
Defined in Data.Avro.ToAvro
toAvro :: Decimal p s -> Value Schema Source #
Defined in Data.Avro.Encode
avro :: Decimal p s -> AvroM Source #
Defined in Data.Avro.FromAvro
fromAvro :: Value Schema -> Result (Decimal p s) Source #
Defined in Data.Avro.Decode.Lazy.FromLazyAvro
fromLazyAvro :: LazyValue Schema -> Result (Decimal p s) Source #
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 #