Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
mixed :: Foldable t => t Amount -> MixedAmounthledger-lib Hledger.Data.Amount Convert amounts in various commodities into a mixed amount.
mixedAmount :: Amount -> MixedAmounthledger-lib Hledger.Data.Amount Create a MixedAmount from a single Amount.
mixedAmountCost :: MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount Convert all component amounts to cost where possible (see amountCost).
mixedAmountIsZero :: MixedAmount -> Boolhledger-lib Hledger.Data.Amount Is this mixed amount exactly zero, ignoring its display precision? See amountIsZero.
mixedAmountLooksZero :: MixedAmount -> Boolhledger-lib Hledger.Data.Amount Does this mixed amount appear to be zero when rendered with its display precision? See amountLooksZero.
mixedAmountSetFullPrecision :: MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount In each component amount, increase the display precision sufficiently to render it exactly (showing all significant decimal digits).
mixedAmountSetFullPrecisionUpTo :: Maybe Word8 -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount In each component amount, increase the display precision sufficiently to render it exactly if possible, but not more than the given max precision, and if no max precision is given and the amount has infinite decimals, limit display precision to a hard-coded smaller number (8). See amountSetFullPrecisionUpTo.
mixedAmountSetPrecision :: AmountPrecision -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount Set the display precision in the amount's commodities.
mixedAmountSetPrecisionMax :: Word8 -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount In each component amount, ensure the display precision is at most the given value. Makes all amounts have an explicit Precision.
mixedAmountSetPrecisionMin :: Word8 -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount In each component amount, ensure the display precision is at least the given value. Makes all amounts have an explicit Precision.