Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
MissingH Data.Maybe.Utils Pulls a Just value out of a Maybe value. If the Maybe value is Nothing, raises an exception with error. Alias of fromJust.
forceMaybeMsg :: String -> Maybe a -> aMissingH Data.Maybe.Utils Like forceMaybe, but lets you customize the error message raised if Nothing is supplied.
cast'Maybe :: Val a => Value -> Maybe (Maybe a)bson Data.Bson No documentation available.
valMaybe :: Val a => Maybe a -> Valuebson Data.Bson No documentation available.
updateViewStateWithEventMaybe :: Event -> ViewState -> Maybe ViewStategloss Graphics.Gloss.Data.ViewState Like updateViewStateWithEvent, but returns Nothing if no update was needed.
journalTagCostsAndEquityAndMaybeInferCosts :: Bool -> Bool -> Journal -> Either String Journalhledger-lib Hledger.Data.Journal Identify and tag (1) equity conversion postings and (2) postings which have (or could have ?) redundant costs. And if the addcosts flag is true, also add any costs which can be inferred from equity conversion postings. This is always called before transaction balancing to tag the redundant-cost postings so they can be ignored. With --infer-costs, it is called again after transaction balancing (when it has more information to work with) to infer costs from equity postings. See transactionTagCostsAndEquityAndMaybeInferCosts for more details, and hledger manual > Cost reporting for more background.
samplejournalMaybeExplicit :: Bool -> Journalhledger-lib Hledger.Data.Journal No documentation available.
postingAddHiddenAndMaybeVisibleTag :: Bool -> HiddenTag -> Posting -> Postinghledger-lib Hledger.Data.Posting Add the given hidden tag to a posting; and with a true argument, also add the equivalent visible tag to the posting's tags and comment fields. If the posting already has these tags (with any value), do nothing.
transactionAddHiddenAndMaybeVisibleTag :: Bool -> HiddenTag -> Transaction -> Transactionhledger-lib Hledger.Data.Transaction Add the given hidden tag to a transaction; and with a true argument, also add the equivalent visible tag to the transaction's tags and comment fields. If the transaction already has these tags (with any value), do nothing.
-
hledger-lib Hledger.Data.Transaction Find, associate, and tag the corresponding equity conversion postings and costful or potentially costful postings in this transaction. With a true addcosts argument, also generate and add any equivalent costs that are missing. The (previously detected) names of all equity conversion accounts should be provided. For every pair of adjacent conversion postings, this first searches for a posting with equivalent cost (1). If no such posting is found, it then searches the costless postings, for one matching one of the conversion amounts (2). If either of these found a candidate posting, it is tagged with costPostingTagName. Then if in addcosts mode, if a costless posting was found, a cost equivalent to the conversion amounts is added to it. The name reflects the complexity of this and its helpers; clarification is ongoing.