Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data GYNatural
- naturalFromGHC ∷ Natural → GYNatural
- naturalToGHC ∷ GYNatural → Natural
Documentation
Cardano allows token mint amount to be as large as 9_223_372_036_854_775_807
which may not be represented correct in Javascript's number
type, consequently, such large integers are to be better given as text in JSON. This wrapper type around Natural
gives modified FromJSON
and ToJSON
instances so to work with Text
instead.
Instances
FromJSON GYNatural # |
|
Defined in GeniusYield.Types.Natural | |
ToJSON GYNatural # |
|
Enum GYNatural # | |
Defined in GeniusYield.Types.Natural | |
Generic GYNatural # | |
Num GYNatural # | |
Read GYNatural # | |
Integral GYNatural # | |
Defined in GeniusYield.Types.Natural | |
Real GYNatural # | |
Defined in GeniusYield.Types.Natural toRational ∷ GYNatural → Rational # | |
Show GYNatural # | |
PrintfArg GYNatural # | |
Defined in GeniusYield.Types.Natural | |
Eq GYNatural # | |
Ord GYNatural # | |
Defined in GeniusYield.Types.Natural | |
FromHttpApiData GYNatural # | |
Defined in GeniusYield.Types.Natural | |
ToHttpApiData GYNatural # | |
Defined in GeniusYield.Types.Natural | |
ToParamSchema GYNatural # | |
Defined in GeniusYield.Types.Natural toParamSchema ∷ ∀ (t ∷ SwaggerKind Type). Proxy GYNatural → ParamSchema t # | |
ToSchema GYNatural # |
|
Defined in GeniusYield.Types.Natural | |
type Rep GYNatural # | |
Defined in GeniusYield.Types.Natural |