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.

  1. isAccountNamePrefixOf :: AccountName -> AccountName -> Bool

    hledger-lib Hledger.Data.AccountName

    Is the first account a parent or other ancestor of (and not the same as) the second ?

  2. averageMixedAmounts :: [MixedAmount] -> MixedAmount

    hledger-lib Hledger.Data.Amount

    Calculate the average of some mixed amounts.

  3. canonicaliseMixedAmount :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount

    hledger-lib Hledger.Data.Amount

    Deprecated: please use mixedAmountSetStyle False (or styleAmounts) instead

  4. divideMixedAmount :: Quantity -> MixedAmount -> MixedAmount

    hledger-lib Hledger.Data.Amount

    Divide a mixed amount's quantities (and total costs, if any) by a constant.

  5. filterMixedAmount :: (Amount -> Bool) -> MixedAmount -> MixedAmount

    hledger-lib Hledger.Data.Amount

    Filter a mixed amount's component amounts by a predicate.

  6. filterMixedAmountByCommodity :: CommoditySymbol -> MixedAmount -> MixedAmount

    hledger-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.

  7. isMissingMixedAmount :: MixedAmount -> Bool

    hledger-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.

  8. isNegativeMixedAmount :: MixedAmount -> Maybe Bool

    hledger-lib Hledger.Data.Amount

    Is this mixed amount negative, if we can tell that unambiguously? Ie when normalised, are all individual commodity amounts negative ?

  9. mapMixedAmount :: (Amount -> Amount) -> MixedAmount -> MixedAmount

    hledger-lib Hledger.Data.Amount

    Apply a transform to a mixed amount's component Amounts.

  10. missingmixedamt :: MixedAmount

    hledger-lib Hledger.Data.Amount

    A special mixed amount used as a marker, meaning "no explicit amount provided here, infer it when needed".

Page 272 of many | Previous | Next