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. mixedAmountGainAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> MixedAmount -> MixedAmount

    hledger-lib Hledger.Data.Valuation

    Calculate the gain of each component amount, that is the difference between the valued amount and the value of the cost basis. If the commodity we are valuing in is not the same as the commodity of the cost, this will value the cost at the same date as the primary amount. This may not be what you want; for example you may want the cost valued at the posting date. If so, let us know and we can change this behaviour.

  2. mixedAmountToCost :: Map CommoditySymbol AmountStyle -> ConversionOp -> MixedAmount -> MixedAmount

    hledger-lib Hledger.Data.Valuation

    Convert all component amounts to cost/selling price if requested, and style them.

  3. mixedAmountValueAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> MixedAmount -> MixedAmount

    hledger-lib Hledger.Data.Valuation

    Find the market value of each component amount in the given commodity, or its default valuation commodity, at the given valuation date, using the given market price oracle. When market prices available on that date are not sufficient to calculate the value, amounts are left unchanged.

  4. matchesMixedAmount :: Query -> MixedAmount -> Bool

    hledger-lib Hledger.Query

    No documentation available.

  5. queryprefixes :: [Text]

    hledger-lib Hledger.Query

    No documentation available.

  6. type PrefixedFilePath = FilePath

    hledger-lib Hledger.Read

    A file path optionally prefixed by a reader name and colon (journal:, csv:, timedot:, etc.).

  7. splitReaderPrefix :: PrefixedFilePath -> (Maybe StorageFormat, FilePath)

    hledger-lib Hledger.Read

    If a filepath is prefixed by one of the reader names and a colon, split that off. Eg "csv:-" -> (Just "csv", "-"). These reader prefixes can be used to force a specific reader, overriding the file extension.

  8. parsemixedamount :: String -> Either HledgerParseErrors MixedAmount

    hledger-lib Hledger.Read.Common

    Like parseamount', but returns a MixedAmount.

  9. parsemixedamount' :: String -> MixedAmount

    hledger-lib Hledger.Read.Common

    Like parseamount', but returns a MixedAmount.

  10. splitReaderPrefix :: PrefixedFilePath -> (Maybe StorageFormat, FilePath)

    hledger-lib Hledger.Read.JournalReader

    If a filepath is prefixed by one of the reader names and a colon, split that off. Eg "csv:-" -> (Just "csv", "-"). These reader prefixes can be used to force a specific reader, overriding the file extension.

Page 277 of many | Previous | Next