| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Rpc.Server.Internal.UtxoRpc.Type.Rational
Synopsis
- utxoRpcRationalNumberToRational :: Proto RationalNumber -> Maybe Rational
Documentation
utxoRpcRationalNumberToRational :: Proto RationalNumber -> Maybe Rational Source #
Convert a protobuf RationalNumber into a Rational.
Fails with Nothing when the denominator is zero, which is also the
default value of the protobuf field when it is omitted.