Hoogle Search
Within LTS Haskell 24.42 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
showMixedAmountWithoutCost :: Bool -> MixedAmount -> Stringhledger-lib Hledger.Data.Amount Get the string representation of a mixed amount, without showing any costs. With a True argument, adds ANSI codes to show negative amounts in red. See showMixedAmountB for special cases.
-
hledger-lib Hledger.Data.Dates No documentation available.
showDateSpan :: DateSpan -> Texthledger-lib Hledger.Data.Dates Render a datespan as a display string, abbreviating into a compact form if possible. Warning, hides whether dates are Exact or Flex.
showDateSpanAbbrev :: DateSpan -> Texthledger-lib Hledger.Data.Dates Like showDateSpan, but show month spans as just the abbreviated month name in the current locale.
showDateSpanDebug :: DateSpan -> Stringhledger-lib Hledger.Data.Dates Show a DateSpan with its begin/end dates, exact or flex.
-
hledger-lib Hledger.Data.Dates No documentation available.
showJournalAmountsDebug :: Journal -> Stringhledger-lib Hledger.Data.Journal Show the journal amounts rendered, suitable for debug logging.
-
hledger-lib Hledger.Data.Period Render a period as a compact display string suitable for user output.
>>> showPeriod (WeekPeriod (fromGregorian 2016 7 25)) "2016-W30" >>> showPeriod (WeekPeriod (fromGregorian 2024 12 30)) "2025-W01"
showPeriodAbbrev :: Period -> Texthledger-lib Hledger.Data.Period Like showPeriod, but if it's a month or week period show an abbreviated form. >>> showPeriodAbbrev (WeekPeriod (fromGregorian 2016 7 25)) W30 >>> showPeriodAbbrev (WeekPeriod (fromGregorian 2024 12 30)) W01
showAccountName :: Maybe Int -> PostingType -> AccountName -> Texthledger-lib Hledger.Data.Posting Show an account name, clipped to the given width if any, and appropriately bracketed/parenthesised for the given posting type.