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.
isAccountNamePrefixOf :: AccountName -> AccountName -> Boolhledger-lib Hledger.Data.AccountName Is the first account a parent or other ancestor of (and not the same as) the second ?
averageMixedAmounts :: [MixedAmount] -> MixedAmounthledger-lib Hledger.Data.Amount Calculate the average of some mixed amounts.
canonicaliseMixedAmount :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount Deprecated: please use mixedAmountSetStyle False (or styleAmounts) instead
divideMixedAmount :: Quantity -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount Divide a mixed amount's quantities (and total costs, if any) by a constant.
filterMixedAmount :: (Amount -> Bool) -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount Filter a mixed amount's component amounts by a predicate.
filterMixedAmountByCommodity :: CommoditySymbol -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount Return an unnormalised MixedAmount containing just the amounts in the requested commodity from the original mixed amount. The result will contain at least one Amount of the requested commodity, even if the original mixed amount did not (with quantity zero in that case, and this would be discarded when the mixed amount is next normalised). The result can contain more than one Amount of the requested commodity, eg because there were several with different costs, or simply because the original mixed amount was was unnormalised.
isMissingMixedAmount :: MixedAmount -> Boolhledger-lib Hledger.Data.Amount Does this MixedAmount include the "missing amount" marker ? Note: currently does not test for equality with missingmixedamt, instead it looks for missingamt among the Amounts. missingamt should always be alone, but detect it even if not.
isNegativeMixedAmount :: MixedAmount -> Maybe Boolhledger-lib Hledger.Data.Amount Is this mixed amount negative, if we can tell that unambiguously? Ie when normalised, are all individual commodity amounts negative ?
mapMixedAmount :: (Amount -> Amount) -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Amount Apply a transform to a mixed amount's component Amounts.
missingmixedamt :: MixedAmounthledger-lib Hledger.Data.Amount A special mixed amount used as a marker, meaning "no explicit amount provided here, infer it when needed".