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.
-
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.
mixedAmountToCost :: Map CommoditySymbol AmountStyle -> ConversionOp -> MixedAmount -> MixedAmounthledger-lib Hledger.Data.Valuation Convert all component amounts to cost/selling price if requested, and style them.
-
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.
matchesMixedAmount :: Query -> MixedAmount -> Boolhledger-lib Hledger.Query No documentation available.
-
hledger-lib Hledger.Query No documentation available.
type
PrefixedFilePath = FilePathhledger-lib Hledger.Read A file path optionally prefixed by a reader name and colon (journal:, csv:, timedot:, etc.).
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.
parsemixedamount :: String -> Either HledgerParseErrors MixedAmounthledger-lib Hledger.Read.Common Like parseamount', but returns a MixedAmount.
parsemixedamount' :: String -> MixedAmounthledger-lib Hledger.Read.Common Like parseamount', but returns a MixedAmount.
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.