hledger-lib: A library providing the core functionality of hledger

[ finance, gpl, library ] [ Propose Tags ] [ Report a vulnerability ]

This library contains hledger's core functionality. It is used by most hledger* packages so that they support the same command line options, file formats, reports, etc.

hledger is a robust, cross-platform set of tools for tracking money, time, or any other commodity, using double-entry accounting and a simple, editable file format, with command-line, terminal and web interfaces. It is a Haskell rewrite of Ledger, and one of the leading implementations of Plain Text Accounting.

See also:


[Skip to Readme]

Modules

[Last Documentation]

  • Hledger
    • Hledger.Data
      • Hledger.Data.Account
      • Hledger.Data.AccountName
      • Hledger.Data.Amount
      • Hledger.Data.BalanceData
      • Hledger.Data.Balancing
      • Hledger.Data.Currency
      • Hledger.Data.Dates
      • Hledger.Data.DayPartition
      • Hledger.Data.Errors
      • Hledger.Data.Journal
      • Hledger.Data.JournalChecks
        • Hledger.Data.JournalChecks.Ordereddates
        • Hledger.Data.JournalChecks.Uniqueleafnames
      • Hledger.Data.Json
      • Hledger.Data.Ledger
      • Hledger.Data.Period
      • Hledger.Data.PeriodData
      • Hledger.Data.PeriodicTransaction
      • Hledger.Data.Posting
      • Hledger.Data.RawOptions
      • Hledger.Data.StringFormat
      • Hledger.Data.Timeclock
      • Hledger.Data.Transaction
      • Hledger.Data.TransactionModifier
      • Hledger.Data.Types
      • Hledger.Data.Valuation
    • Hledger.Query
    • Hledger.Read
      • Hledger.Read.Common
      • Hledger.Read.CsvReader
      • Hledger.Read.InputOptions
      • Hledger.Read.JournalReader
      • Hledger.Read.RulesReader
      • Hledger.Read.TimeclockReader
      • Hledger.Read.TimedotReader
    • Hledger.Reports
      • Hledger.Reports.AccountTransactionsReport
      • Hledger.Reports.BalanceReport
      • Hledger.Reports.BudgetReport
      • Hledger.Reports.EntriesReport
      • Hledger.Reports.MultiBalanceReport
      • Hledger.Reports.PostingsReport
      • Hledger.Reports.ReportOptions
      • Hledger.Reports.ReportTypes
    • Hledger.Utils
      • Hledger.Utils.Debug
      • Hledger.Utils.IO
      • Hledger.Utils.Parse
      • Hledger.Utils.Regex
      • Hledger.Utils.String
      • Hledger.Utils.Test
      • Hledger.Utils.Text
    • Write
      • Hledger.Write.Beancount
      • Hledger.Write.Csv
      • Hledger.Write.Html
        • Hledger.Write.Html.Attribute
        • Hledger.Write.Html.Blaze
        • Hledger.Write.Html.HtmlCommon
        • Hledger.Write.Html.Lucid
      • Hledger.Write.Ods
      • Hledger.Write.Spreadsheet
  • Text
    • Tabular
      • Text.Tabular.AsciiWide
    • Text.WideString

Flags

Manual Flags

NameDescriptionDefault
debug

Build with GHC 9.10+ stack traces enabled

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.9, 0.10, 0.11, 0.11.1, 0.12, 0.12.1, 0.13, 0.14, 0.15, 0.15.2, 0.16, 0.16.1, 0.17, 0.18, 0.18.1, 0.18.2, 0.19, 0.19.1, 0.19.3, 0.20, 0.20.0.1, 0.21, 0.21.1, 0.21.2, 0.21.3, 0.22, 0.22.1, 0.22.2, 0.23, 0.23.1, 0.23.2, 0.23.3, 0.24, 0.24.1, 0.25, 0.25.1, 0.26, 0.27, 0.27.1, 1.0, 1.0.1, 1.1, 1.2, 1.3, 1.3.1, 1.3.2, 1.4, 1.5, 1.5.1, 1.9, 1.9.1, 1.10, 1.11, 1.11.1, 1.12, 1.13, 1.13.1, 1.14, 1.14.1, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.17, 1.17.0.1, 1.17.1, 1.18, 1.18.1, 1.19, 1.19.1, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.21, 1.22, 1.22.1, 1.22.2, 1.23, 1.24, 1.24.1, 1.24.99, 1.25, 1.26, 1.26.1, 1.27, 1.27.1, 1.28, 1.29, 1.29.1, 1.29.2, 1.30, 1.31, 1.32, 1.32.1, 1.32.2, 1.32.3, 1.33, 1.33.1, 1.34, 1.40, 1.41, 1.42, 1.42.1, 1.42.2, 1.43, 1.43.1, 1.43.2, 1.50, 1.50.1, 1.50.2, 1.50.3, 1.50.4, 1.50.5, 1.51, 1.51.1, 1.51.2, 1.52, 1.52.1 (info)
Change log CHANGES.md
Dependencies aeson (>=1 && <2.3), aeson-pretty, ansi-terminal (>=0.9), array, base (>=4.18 && <4.23), blaze-html, blaze-markup (>=0.5.1), bytestring, call-stack, cassava, cassava-megaparsec, cmdargs (>=0.10), colour (>=2.3.6), containers (>=0.5.9), data-default (>=0.5), Decimal (>=0.5.1), deepseq, directory (>=1.2.6.1), doclayout (>=0.3 && <0.6), encoding (>=0.10), extra (>=1.7.11), file-embed (>=0.0.10), filepath, Glob (>=0.9), hashtables (>=1.2.3.1 && <1.3 || >=1.4.0), lucid, megaparsec (>=7.0.0 && <9.8), microlens (>=0.4), microlens-th (>=0.4), mtl (>=2.2.1), parser-combinators (>=0.4.0), pretty-simple (>4 && <5), process, regex-tdfa, safe (>=0.3.20), tabular (>=0.2), tasty (>=1.2.3), tasty-hunit (>=0.10.0.2), template-haskell, terminal-size (>=0.3.3), text (>=1.2.4.1), these (>=1.0.0), time (>=1.5), timeit, transformers (>=0.2), uglymemo, unordered-containers (>=0.2), utf8-string (>=0.3.5) [details]
Tested with ghc ==9.6.7, ghc ==9.8.4, ghc ==9.10.2, ghc ==9.12.2
License GPL-3.0-or-later
Author Simon Michael <simon@joyful.com>
Maintainer Simon Michael <simon@joyful.com>
Uploaded by SimonMichael at 2026-04-28T22:42:28Z
Category Finance
Home page http://hledger.org
Bug tracker http://bugs.hledger.org
Source repo head: git clone https://github.com/simonmichael/hledger
Distributions Arch:1.52, LTSHaskell:1.43.2, Stackage:1.51.2
Reverse Dependencies 8 direct, 0 indirect [details]
Downloads 81575 total (376 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs pending
Build status unknown [no reports yet]

Readme for hledger-lib-1.52.1

[back to package description]

hledger-lib

A reusable library containing hledger's core functionality. This is used by most hledger* packages so that they support the same common file formats, command line options, reports etc.

See also: the project README and home page.