head	1.25;
access;
symbols
	pkgsrc-2026Q1:1.25.0.6
	pkgsrc-2026Q1-base:1.25
	pkgsrc-2025Q4:1.25.0.4
	pkgsrc-2025Q4-base:1.25
	pkgsrc-2025Q3:1.25.0.2
	pkgsrc-2025Q3-base:1.25
	pkgsrc-2025Q2:1.24.0.4
	pkgsrc-2025Q2-base:1.24
	pkgsrc-2025Q1:1.24.0.2
	pkgsrc-2025Q1-base:1.24
	pkgsrc-2024Q4:1.19.0.6
	pkgsrc-2024Q4-base:1.19
	pkgsrc-2024Q3:1.19.0.4
	pkgsrc-2024Q3-base:1.19
	pkgsrc-2024Q2:1.19.0.2
	pkgsrc-2024Q2-base:1.19
	pkgsrc-2024Q1:1.17.0.4
	pkgsrc-2024Q1-base:1.17
	pkgsrc-2023Q4:1.17.0.2
	pkgsrc-2023Q4-base:1.17
	pkgsrc-2023Q3:1.14.0.6
	pkgsrc-2023Q3-base:1.14
	pkgsrc-2023Q2:1.14.0.4
	pkgsrc-2023Q2-base:1.14
	pkgsrc-2023Q1:1.14.0.2
	pkgsrc-2023Q1-base:1.14
	pkgsrc-2022Q4:1.11.0.4
	pkgsrc-2022Q4-base:1.11
	pkgsrc-2022Q3:1.11.0.2
	pkgsrc-2022Q3-base:1.11
	pkgsrc-2022Q2:1.9.0.4
	pkgsrc-2022Q2-base:1.9
	pkgsrc-2022Q1:1.9.0.2
	pkgsrc-2022Q1-base:1.9
	pkgsrc-2021Q4:1.5.0.6
	pkgsrc-2021Q4-base:1.5
	pkgsrc-2021Q3:1.5.0.4
	pkgsrc-2021Q3-base:1.5
	pkgsrc-2021Q2:1.5.0.2
	pkgsrc-2021Q2-base:1.5
	pkgsrc-2021Q1:1.2.0.8
	pkgsrc-2021Q1-base:1.2
	pkgsrc-2020Q4:1.2.0.6
	pkgsrc-2020Q4-base:1.2
	pkgsrc-2020Q3:1.2.0.4
	pkgsrc-2020Q3-base:1.2
	pkgsrc-2020Q2:1.2.0.2
	pkgsrc-2020Q2-base:1.2;
locks; strict;
comment	@# @;


1.25
date	2025.08.13.11.07.08;	author pho;	state Exp;
branches;
next	1.24;
commitid	oGqtJTKdyCfCKy6G;

1.24
date	2025.03.05.03.39.37;	author pho;	state Exp;
branches;
next	1.23;
commitid	VPkRDaZT4MoYrPLF;

1.23
date	2025.02.02.13.05.32;	author pho;	state Exp;
branches;
next	1.22;
commitid	Zl7FwsffomOQzTHF;

1.22
date	2025.02.01.12.07.03;	author pho;	state Exp;
branches;
next	1.21;
commitid	k6xIyPp4Gt1hiLHF;

1.21
date	2025.01.09.23.24.41;	author wiz;	state Exp;
branches;
next	1.20;
commitid	9c7rwnmkEK7wMREF;

1.20
date	2025.01.09.23.15.14;	author wiz;	state Exp;
branches;
next	1.19;
commitid	O6a8HqfuV8PiJREF;

1.19
date	2024.05.09.01.32.21;	author pho;	state Exp;
branches;
next	1.18;
commitid	zmOkUK6EkFT4og9F;

1.18
date	2024.05.02.12.03.23;	author pho;	state Exp;
branches;
next	1.17;
commitid	SqIi1x9MHZw47q8F;

1.17
date	2023.11.02.06.37.06;	author pho;	state Exp;
branches;
next	1.16;
commitid	dPkTdcIqhE4k90LE;

1.16
date	2023.10.31.16.03.10;	author pho;	state Exp;
branches;
next	1.15;
commitid	pVWKBlhDU4A1mNKE;

1.15
date	2023.10.09.04.54.36;	author pho;	state Exp;
branches;
next	1.14;
commitid	GWJENRm2aeL7mUHE;

1.14
date	2023.02.07.01.40.56;	author pho;	state Exp;
branches;
next	1.13;
commitid	FngQneW4VvkL7xcE;

1.13
date	2023.01.27.17.44.38;	author pho;	state Exp;
branches;
next	1.12;
commitid	e8M5E5Q9raHROcbE;

1.12
date	2023.01.24.01.13.10;	author riastradh;	state Exp;
branches;
next	1.11;
commitid	N0NnnZgLvtjHqJaE;

1.11
date	2022.09.07.06.50.53;	author pho;	state Exp;
branches;
next	1.10;
commitid	QzLmla1kE2mfLTSD;

1.10
date	2022.08.20.08.08.24;	author wiz;	state Exp;
branches;
next	1.9;
commitid	gfUtMrzKtoUPLAQD;

1.9
date	2022.02.26.03.58.13;	author pho;	state Exp;
branches;
next	1.8;
commitid	YpGygpH4CsFi05uD;

1.8
date	2022.02.12.08.50.42;	author pho;	state Exp;
branches;
next	1.7;
commitid	RtqPCkFXjE2Y4jsD;

1.7
date	2022.02.12.07.59.09;	author pho;	state Exp;
branches;
next	1.6;
commitid	QhZk5BhxN6QwNisD;

1.6
date	2022.01.18.02.48.16;	author pho;	state Exp;
branches;
next	1.5;
commitid	ebWMDlQYfX5rS3pD;

1.5
date	2021.05.03.19.01.06;	author pho;	state Exp;
branches;
next	1.4;
commitid	Sim1lfCa9UFPBJRC;

1.4
date	2021.04.26.07.34.31;	author pho;	state Exp;
branches;
next	1.3;
commitid	isgwLPQxddn03MQC;

1.3
date	2021.04.24.11.12.09;	author pho;	state Exp;
branches;
next	1.2;
commitid	mXAUZjWHM7FEjxQC;

1.2
date	2020.03.30.17.52.39;	author riastradh;	state Exp;
branches;
next	1.1;
commitid	kWOtsrQskBXg4s2C;

1.1
date	2020.03.30.16.52.48;	author riastradh;	state Exp;
branches;
next	;
commitid	LOuQa5mw3AFJJr2C;


desc
@@


1.25
log
@Bump all Haskell because lang/ghc910 has got a library change
@
text
@# $NetBSD: Makefile,v 1.24 2025/03/05 03:39:37 pho Exp $

DISTNAME=	hledger-1.41
PKGNAME=	${DISTNAME}
PKGREVISION=	3
CATEGORIES=	finance

MAINTAINER=	pkgsrc-users@@NetBSD.org
COMMENT=	Command-line interface for the hledger accounting system
LICENSE=	gnu-gpl-v3

INSTALLATION_DIRS+=	share/bash-completion/completions
post-install:
	${INSTALL_DATA} ${WRKSRC}/shell-completion/hledger-completion.bash \
		${DESTDIR}${PREFIX}/share/bash-completion/completions/hledger

do-test:
	${RUN}${PKGSRC_SETENV} \
		LD_LIBRARY_PATH=${WRKSRC:Q}/dist/build \
		DYLD_LIBRARY_PATH=${WRKSRC:Q}/dist/build \
		${WRKSRC:Q}/dist/build/hledger/hledger test

# lib:hledger
.include "../../finance/hs-Decimal/buildlink3.mk"
.include "../../textproc/hs-Diff/buildlink3.mk"
.include "../../converters/hs-aeson/buildlink3.mk"
.include "../../devel/hs-ansi-terminal/buildlink3.mk"
.include "../../devel/hs-cmdargs/buildlink3.mk"
.include "../../devel/hs-data-default/buildlink3.mk"
.include "../../misc/hs-extra/buildlink3.mk"
.include "../../devel/hs-githash/buildlink3.mk"
.include "../../devel/hs-hashable/buildlink3.mk"
.include "../../finance/hledger-lib/buildlink3.mk"
.include "../../textproc/hs-lucid/buildlink3.mk"
.include "../../math/hs-math-functions/buildlink3.mk"
.include "../../textproc/hs-megaparsec/buildlink3.mk"
.include "../../devel/hs-microlens/buildlink3.mk"
.include "../../net/hs-modern-uri/buildlink3.mk"
.include "../../textproc/hs-regex-tdfa/buildlink3.mk"
.include "../../devel/hs-safe/buildlink3.mk"
.include "../../textproc/hs-shakespeare/buildlink3.mk"
.include "../../devel/hs-split/buildlink3.mk"
.include "../../devel/hs-tabular/buildlink3.mk"
.include "../../devel/hs-tasty/buildlink3.mk"
.include "../../sysutils/hs-temporary/buildlink3.mk"
.include "../../textproc/hs-text-ansi/buildlink3.mk"
.include "../../devel/hs-timeit/buildlink3.mk"
.include "../../devel/hs-unordered-containers/buildlink3.mk"
.include "../../devel/hs-utf8-string/buildlink3.mk"
.include "../../devel/hs-utility-ht/buildlink3.mk"
.include "../../devel/hs-wizards/buildlink3.mk"

# exe:hledger
.include "../../finance/hs-Decimal/buildlink3.mk"
.include "../../converters/hs-aeson/buildlink3.mk"
.include "../../devel/hs-ansi-terminal/buildlink3.mk"
.include "../../devel/hs-cmdargs/buildlink3.mk"
.include "../../devel/hs-data-default/buildlink3.mk"
.include "../../misc/hs-extra/buildlink3.mk"
.include "../../devel/hs-githash/buildlink3.mk"
.include "../../finance/hledger-lib/buildlink3.mk"
.include "../../math/hs-math-functions/buildlink3.mk"
.include "../../textproc/hs-megaparsec/buildlink3.mk"
.include "../../devel/hs-microlens/buildlink3.mk"
.include "../../textproc/hs-regex-tdfa/buildlink3.mk"
.include "../../devel/hs-safe/buildlink3.mk"
.include "../../textproc/hs-shakespeare/buildlink3.mk"
.include "../../devel/hs-split/buildlink3.mk"
.include "../../devel/hs-tabular/buildlink3.mk"
.include "../../devel/hs-tasty/buildlink3.mk"
.include "../../sysutils/hs-temporary/buildlink3.mk"
.include "../../textproc/hs-text-ansi/buildlink3.mk"
.include "../../devel/hs-timeit/buildlink3.mk"
.include "../../devel/hs-unordered-containers/buildlink3.mk"
.include "../../devel/hs-utf8-string/buildlink3.mk"
.include "../../devel/hs-utility-ht/buildlink3.mk"
.include "../../devel/hs-wizards/buildlink3.mk"

.include "../../mk/haskell.mk"
.include "../../mk/bsd.pkg.mk"
@


1.24
log
@recursive revbump after patching lang/ghc910
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2025/02/02 13:05:32 pho Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.23
log
@Bump all Haskell packages after switching the default compiler.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2025/02/01 12:07:03 pho Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.22
log
@finance/hledger: update to hledger-1.41

# 2024-12-09 1.41

Breaking changes

- Accounts named "equity:conversion", "equity:trading", or "equity:trade(s)",
  which are detected as type `V`/`Conversion`, will now revert to type `E`/`Equity` instead
  if any other account has been declared as type `V`/`Conversion`.

- When built with ghc 9.10.1, hledger shows two extra newlines after any error message.

Fixes

- A somewhat severe, though hopefully rare, valuation bug has been fixed.
  In certain circumstances, values could be calculated inaccurately,
  because of display-rounding occurring inappropriately during calculations. [#2254]

  Specifically:
  when there was no direct P price for the target commodity,
  so that hledger had to convert via a chain of prices,
  and if all of those price amounts had too few decimal places,
  then the result could be inaccurate.
  An example:

      P 2000-01-01 A   10.5 B
      P 2000-01-01 B  100.5 C

      2000-01-01
          (a)    100 A

      $ hledger-1.40 print -X C
      2000-01-01
          (a)        105520 C   ; wrong

      $ hledger-1.41 print -X C
      2000-01-01
          (a)        105525 C   ; right

- `bs`/`bse`/`cf`/`is`'s HTML output no longer includes excess heading cells,
  and `bs`/`bse`'s HTML output no longer shows an inappropriate Total heading with `-T`.
  (`balancesheet` does not support `-T`.)
  (Henning Thielemann)

- Balance commands' HTML, CSV and FODS output now show tree mode properly indented
  (using no-break spaces).
  (Henning Thielemann)

- In the HTML output of `bs`/`bse`/`cf`/`is` reports, Net amounts in the Net row are now formatted like the others.
  (Bas van Dijk)

- In `bs`/`bse`/`cf`/`is` HTML output, some unnecessary TH cells have been fixed.
  [#2225] (Henning Thielemann)

- The `print` command now ignores a depth limit entirely.
  Previously, a depth limit caused it to show only transactions referencing accounts as deep or deeper than that.

- In the `roi` command, a division by zero error (when all assets were sold) has been fixed.
  [#2281] (Dmitry Astapov)

- In a multi-line comment generated by CSV rules, tags on all lines now work (ie, can be matched).
  Posting dates in comments generated from CSV also now [work](https://hledger.org/hledger.html#comment-field).
  (#2241)

- hledger's bash shell completions are now up to date with the latest CLI.
  [#986]

- When showing output with a pager, if `$PAGER` is set to something not found in PATH,
  we now ignore it instead of raising an error.

- `hledger --color=yes | less -R` now shows bold headings as you'd expect.

Features

- The `print`, `register` and `aregister` commands now support HTML and FODS output,
  and the `bs`/`bse`/`cf`/`is` commands now support FODS output.
  This means all of the "STANDARD REPORTS" commands, and the `balance` command, now support text, HTML, CSV, TSV, or FODS output.
  (Henning Thielemann)

- When generating HTML output with the register or balance commands,
  the `--base-url` option will add hyperlinks to hledger-web,
  allowing you to view the detailed transactions if you have hledger-web running.
  (Henning Thielemann)

- Reports can now specify different display depths for certain accounts,
  rather than showing all accounts with the same depth limit.
  Multiple `--depth=ACCTREGEX=DEPTH` options (or `depth:ACCTREGEX=DEPTH` arguments can be used.
  For example, this will clip all accounts matching "assets" to depth 3,
  all accounts matching "expenses" to depth 2, and all other accounts to depth 1:
  `--depth assets=3 --depth expenses=2 --depth 1`
  (Stephen Morgan, #2292)

- In unix-like environments, hledger now uses a pager (`$PAGER`, `less`, or `more`)
  for all large terminal output, not just for help.
  You can override this with the new `--pager` option.
  The pager is expected to handle hledger's ANSI colour output (unless you disable that).
  If `less` is used, it will be configured automatically,
  or you can override this by setting options in a `HLEDGER_LESS` environment variable.

- The `print` command's `beancount` output is now much more Beancount-compatible [#2295].
  Other than using `--alias` to provide the top-level account names Beancount requires,
  you should rarely have to do anything special to produce a journal that `bean-check` accepts.
  hledger will automatically adjust problematic names, encode unsupported characters, and so on.
  See [hledger: Beancount output](https://hledger.org/dev/hledger.html#beancount-output) for the full details.

  This supersedes the `ledger2beancount` tool, and makes using Beancount tools,
  especially Fava, practical for hledger users. In many cases this should just work:
  ```
  hledger [ALIASES] print -o tmp.beancount; fava tmp.beancount
  ```

Improvements

- `if` blocks in CSV rules now allow `& !` (AND NOT) on the same line.

- When reading `.latest` files, whitespace is now ignored, and any date parse failure
  is reported with the file and line number.

- In journal format, P directives now require a space after the first symbol,
  preventing surprises like `P 2024-10-31 a0 1` parsed as `P 2024-10-31 a 01`.
  [#2280]

- `aregister` has a new `--heading=YN` option, for disabling the report heading. (Henning Thielemann)

- `aregister` now supports the `--invert` and `--cumulative` flags, like the `register` command. (Henning Thielemann)

- The balance commands' HTML and FODS output now shows table borders consistently.
  (Henning Thielemann)

- In the balance commands' HTML output, row headings now span multiple rows when appropriate, rather than being repeated.
  (Henning Thielemann)

- Balance commands now support `--transpose` when generating HTML output.
  (Henning Thielemann)

- The `balance` command's `--layout=tidy` now affects HTML and FODS output at least to some extent (not just CSV output).
  And it always disables the totals row. (Henning Thielemann)

- The `balance` command's FODS output now picks a report title based on the report mode:
  "Balance Report", "Multi-period Balance Report", or "Budget Report". (Henning Thielemann)

- `balance` and `aregister`'s HTML output will now use a hledger.css file if present, like `bs`/`bse`/`cf`/`is`.

- `bs`/`bse`/`cf`/`is` now support the `--count` (postings count) report type, like `balance`.

- The balance commands' options help has had some cleanup.

- The error messages from `check accounts` and `check recentassertions` are now clearer.

- The `check commodities` command now also checks commodities used in P directives. [#2280]

- The `commodities` command now also list commodities mentioned in P directives. [#2280]

- All of hledger's internal hidden (but searchable) tags can now be made visible
  by `print --verbose-tags`,  which is useful for troubleshooting `--infer-equity`,
  `--infer-costs`, and the detection of redundant costs and conversion postings.
  Also,

  - Some hidden tags have been renamed for clarity:
    `_modified` is now `_modified-transaction`,
    `_cost-matched` is now `_cost-posting`,
    `_conversion-matched` is now `_conversion-posting`.
  - The `generated-posting:` tag added by `--infer-equity` is now valueless.
  - The `modified-transaction:` tag added by `--auto` now appears on its own line.

- Using the `-NUM` shortcut (for `--depth NUM`) in a config file now works.

- Setting the `--color` option in a config file now works
  (except it does not affect `--debug` output, currently).

- The `--color` option's suggested values are now `yes`/`y`, `no`/`n`, or `auto`/`a`.
  `always` and `never` are no longer documented, though still supported.

- More compact and informative `--debug=2` output during valuation.
  Market prices are now shown using one line each, the known prices
  are listed, and the status of `--infer-market-prices` is shown.
  [#2287]

- More informative `--debug=7` output from CSV rules.

- The hledger packages have a new `debug` build flag. Builds made with ghc 9.10+ and this flag
  will show some kind of stack trace if the program exits with an error.
  (These will improve in future ghc versions.)

- Disabled the unused `ghcdebug` build flag and ghc-debug support, for now.

- Allow megaparsec 9.7.

- ghc 9.10 / base 4.20 are now supported.

Docs

- Windows: added tips for setting `LEDGER_FILE` (Amadeusz Wieczorek, hledger_site#119)
- csv: if blocks: explain matchers and field names better [#2289]
- import: rewrite; rename "date skipping" to "overlap detection"
- import: added tips for first import
- assertions: mention their behaviour with posting status
- journal: rewrite the Tags section
- pager: note that `help -p TOPIC` uses less; link to less FAQ
- query types: updates, add headings, mention tag:'s infix matching
- Regular expressions: note possible RTL/bidi limitation (?)
- Special characters: rewrite, more precision, mention some Windows differences
- Output formats: expand, document beancount and FODS output
- Text output: expand/consolidate terminal topics
- FODS output: describe the advantages over CSV (Henning Thielemann)
- Debug output: note that the --debug option doesn't work in config files.
- bal: improve --layout doc
- bal: note that tree mode doesn't work in html output [#1846]
- bal: also mention hledger.css and text encoding in balance doc
- html: note safari text encoding issue
- timedot: mention the common journal+timedot file setup [#2238]
- Install, manual: new shell completions doc. [#986]
- Config files: rewrite [#2231]
- examples/csv: an example of YNAB 4 data, and RTL text, with a workaround
- examples: hledger2beancount.conf

Scripts/addons

- bin/*: remove obsolete _FLAGS markers from --help
- examples/csv/csv-hledger-1.py: a python-based CSV converter script

API

- Hledger.Utils.IO's ansi color helpers now respect the --color option.
- Hledger.Utils.IO.rgb' now takes Float arguments instead of Word8.
- Hledger.Cli.Commands.Balance: export budgetReportAs* functions, for use in scripts.
  (Dmitry Astapov)


# 1.40 2024-09-09

Fixes

- Account tags (and type declarations) declared in multiple files are now combined correctly. [#2202]

- Several kinds of report interval now choose a better start date:
  - `every Nth day of month from DATE` with periodic transactions [#2218]
  - `every M/D from DATE`
  - `every Nth WEEKDAY from DATE`

- The balance commands' HTML output no longer repeats the "Total" and
  "Net" headings when the totals row has multiple lines.
  And the layout has been improved and made more consistent with the
  text output.

- The `--tldr` flag now also works with the `tealdeer` tldr client.

- `hledger check tags` no longer warns about the internal `_price-matched` tag
  being undeclared (and that tag has been renamed to `_cost-matched`).
  [#2247]

- `hledger check accounts` no longer warns about the special `equity:conversion` account
  being undeclared (the default account used by `--infer-equity`).

Features

- You can now save command line options in a [config file](https://hledger.org/hledger.html#config-files),
  to be added to your hledger commands either on demand or automatically.
  (This supersedes the older arguments files feature.)

  This much-requested new feature has pros and cons, and is experimental;
  your testing and feedback is welcome.
  It changes the nature of hledger somewhat, which I have marked by
  giving this release a more memorable version number (1.40).

- The balance commands can now output in FODS format, an XML spreadsheet
  file format readable by LibreOffice. (Henning Thielemann)

- The `register` report can now be sorted by date, account, amount,
  absolute amount, description, or a combination of these. (Michael Rees, [#2211])

Improvements

- All the balance-like commands now support FODS output, not just `balance`.
  (Henning Thielemann)

- Config files can now also provide the command name.
  If the first thing in a config file's general section is a non-flag argument,
  that will be used as the command name argument,
  taking precedence over any command line arguments.
  This makes config files strictly more powerful than the older argument files.

- Improved debug output for command line and config file processing.

- The print command's beancount output is now better at producing Beancount-ready data,
  converting hledger account names and commodity names to Beancount-compatible ones.

- Command line processing has been overhauled and should be more robust
  in certain cases, with tweaked error messages and debug output.
  Command-specific flags can now optionally appear before the command name.
  (Though writing them afterward is usually more readable.
   Addon-specific flags must still come last, after `--`.)

- The `--rules-file` option has been renamed to `--rules`.
  The old spelling is still supported as a hidden option.

- Weekly reports' week headings are now more compact, especially in
  single-year balance reports. ([#2204], Victor Mihalache)

- The `balance` command with no report interval, and also `balance --budget`,
  now support html output. (Henning Thielemann)

- In balance commands' html and csv output, "Total:" and "Net:" headings
  are now capitalised consistently.

- `bs`/`cf`/`is` reports now show the report interval in their title.

- The balance commands' text output with the `--pretty` flag now shows
  an outer table border and inter-column borders.

- The `check recentassertions` error message is now more readable.

- Timedot format now allows comment lines to be indented.

- When running the `tldr-node-client` client, auto-update of the tldr
  database is now suppressed.

- When running a tldr client fails, the warning now mentions the required
  `--render` flag. [#2201]

- The error message for unsupported regular expressions like `(?:foo)` has
  been improved.

- `--debug` has moved to "General help flags", making it available in
  more situations.

- Some verbose debug output from command line processing has been demoted to level 2.

- Parsing timedot files now gives debug output at level 9.

- Allow doclayout 0.5.

Docs

- The hledger/hledger-ui/hledger-web manuals now list all command options as shown by `--help`.
- Added an example config file, `hledger.conf.sample`.
- The `diff` and `prices` commands' help layout has been improved.
- `add`'s doc described the effect of `D` wrongly, now fixed.
- Date adjustments: rewrites and corrections
- Period headings: added
- Input: clarify that multiple -f options are allowed
- Scripts and add-ons: edits, list add-ons again
- Timeclock: edits, fix `ti`/`to` scripts
- Fixed "hledger and Ledger" links [hledger_site#112]
- examples/csv: Monzo CSV rules added
- examples/csv: Tiller CSV rules added
- examples/csv: Nordea CSV rules added (Arto Jonsson)

Scripts/addons

- `bin/bashrc` updates; add years, eachyear scripts
- `bin/hledger-simplebal`: ignore config files
- `bin/hledger-script-example`: explain shebang commands better
- `bin/hledger-register-max`: update/fix



# 1.34 2024-06-01

Breaking changes

- `check ordereddates` no longer supports `--date2`.
  Also (not a breaking change): `--date2` and secondary dates are now officially
  [deprecated](https://hledger.org/1.34/hledger.html#secondary-dates) in hledger,
  though kept for compatibility.

Features

- You can now get a quick list of example command lines for hledger or
  its most useful subcommands by adding the `--tldr` flag (or just
  `--tl`).  For best appearance you should install the [`tldr`][tldr] client,
  though it's not required.

  These short "tldr pages" are a great counterbalance to verbose PTA docs.
  You can also use `tldr` without hledger to view the latest versions, or translations:\
  `tldr hledger[-COMMAND]`.
  Or you can [browse tldr pages online](https://tldr.inbrowser.app/search?query=hledger+).
  Consider contributing translations!
  More tips at <https://github.com/simonmichael/hledger/tree/master/doc/tldr>.

[tldr]: https://tldr.sh

Improvements

- The `hledger` commands list has been reorganised,
  with commands listed roughly in the order you'll need them.

- The general flags descriptions in `--help` have been updated and grouped.

- Correctness checks now run in a documented order.  `commodities` are
  now checked before `accounts`, and `tags` before `recentassertions`.
  When both `ordereddates` and `assertions` checks are enabled,
  `ordereddates` now runs first, giving more useful error messages.

- `-I`/`--ignore-assertions` is now overridden by `-s`/`--strict`
  (or `check assertions`), enabling more flexible workflows.
  Eg you can `alias hl="hledger -I"` to delay balance assertions
  checking until you add `-s` to commands.

- `--color` and `--pretty` now also accept `y` or `n` as argument.

- When built with the `ghcdebug` flag and started with `--debug=-1`,
  hledger can be controlled by [ghc-debug] clients like
  ghc-debug-brick or a ghc-debug query script, for analysing
  memory/profile info.

[ghc-debug]: https://gitlab.haskell.org/ghc/ghc-debug

Fixes

- `hledger COMMAND --man` and `hledger help TOPIC --man` now properly scroll
  the man page to the TOPIC or COMMAND heading.
  The exact/prefix matching behaviour has been clarified in `help --help`.

- In journal files, `include` directives with trailing whitespace are now parsed correctly.

- The help command's help flags are now consistent with other commands
  (and it has `--debug` as a hidden flag).

- Build errors with GHC 8.10 have been fixed. [#2198]

Docs

- The tables of contents on hledger.org pages now just list top-level headings,
  (and the hledger manual structure has been adjusted for this).
  This makes the hledger manual on hledger.org more scannable and less scary.
- add: drop lengthy transcript, add simpler example commands (from tldr)
- Amount formatting: move down, it's not the best first topic
- balance: mention the `--summary-only` flag
- check: expand check descriptions
- examples: CSV rules: vanguard, fidelity, paypal updates
- Generating data: rewrite
- JSON output: link to OpenAPI spec
- manuals: synopsis, options cleanup/consistency
- Options: correction, NO_COLOR does not override --color
- PART 4: COMMANDS: reorganise into groups, like the CLI commands list.
- Period expressions: mention last day of month adjusting [#2005]
- Secondary dates: expand, and declare them deprecated.
- Time periods cleanup, simplify markup
- Unicode characters: mention UTF-8 on windows

Scripts/addons

- Added `hledger-pricehist`, an alias for the `pricehist` market price
  fetcher so that it can appear in hledger's commands list.

[#2005]: https://github.com/simonmichael/hledger/issues/2005
[#2198]: https://github.com/simonmichael/hledger/issues/2198
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
@


1.21
log
@*: recursive bump for hs-doclayout 0.5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2025/01/09 23:15:14 wiz Exp $
d3 1
a3 1
DISTNAME=	hledger-1.33.1
a4 1
PKGREVISION=	3
d8 1
a8 1
COMMENT=	Plain-text accounting tool
d22 3
a28 2
.include "../../finance/hs-Decimal/buildlink3.mk"
.include "../../textproc/hs-Diff/buildlink3.mk"
d37 1
d51 27
a79 17

# XXX Kludge: We need to run this in a UTF-8 locale; otherwise GHC is
# unhappy.  But we also need to make this override the C locale that
# pkgsrc tries hard to ensure everything gets built in for the sake of
# reproducibility, so it has to come _after_ bsd.pkg.mk.  This would be
# C.UTF-8, but C.UTF-8 was only recently introduced into NetBSD, so
# let's pick a locale that is pretty universally supported even if not
# exactly appropriate for this.
MAKE_ENV+=	LC_ALL=en_US.UTF-8
# The root cause of the problem is in hledger-lib/Hledger/Utils.hs
# (embedFileRelative). It uses embedStringFile from file-embed
# (devel/hs-file-embed) but without changing the locale encoding to
# UTF-8, and the file to be embedded
# (hledger/embeddedfiles/hledger.info) does contain non-ASCII
# characters. Using with-utf8
# (http://hackage.haskell.org/package/with-utf8) is probably the best
# solution.
@


1.20
log
@i*: recursive bump for hs-emojis update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2024/05/09 01:32:21 pho Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.19
log
@Recursive revbump after changing the default Haskell compiler
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2024/05/02 12:03:23 pho Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.18
log
@finance/hledger: Update to 1.33.1

The release note is too long to paste here:
https://hackage.haskell.org/package/hledger-1.33.1/changelog
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2023/11/02 06:37:06 pho Exp $
d5 1
@


1.17
log
@Revbump all Haskell after updating lang/ghc96
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2023/10/31 16:03:10 pho Exp $
d3 1
a3 1
DISTNAME=	hledger-1.31
a4 1
PKGREVISION=	1
a10 3
HASKELL_UNRESTRICT_DEPENDENCIES+=	\
	megaparsec

@


1.16
log
@finance/hledger: Update to 1.31

The change log is too long to paste here. See
https://hackage.haskell.org/package/hledger-1.31/changelog
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2023/10/09 04:54:36 pho Exp $
d5 1
@


1.15
log
@Bump Haskell packages after updating lang/ghc94
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2023/02/07 01:40:56 pho Exp $
d3 1
a3 1
DISTNAME=	hledger-1.28
a4 1
PKGREVISION=	2
d11 3
d46 1
@


1.14
log
@revbump all the Haskell packages after modifying the runtime system of lang/ghc94
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2023/01/27 17:44:38 pho Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.13
log
@finance/hledger: Remove dependencies that are no longer used, also support "make test"
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2023/01/24 01:13:10 riastradh Exp $
d5 1
@


1.12
log
@hledger, hledger-lib: Update to 1.28

* hledger 1.28 2022-12-01

Features

- The `accounts` command has new flags: `--undeclared` (show accounts used but not declared), `--unused` (show accounts declared but not used),  and `--find` (find the first account matched by the first command argument, a convenience for scripts). Also `-u` and `-d` short flags have been added for `--used` and `--declared`.

- A new CSV rule `intra-day-reversed` helps generate transactions in correct order with CSVs where records are reversed within each day.

- CSV rules can now correctly convert CSV date-times with a implicit or explicit timezone to dates in your local timezone. Previously, CSV date-times with a different time zone from yours could convert to off-by-one
  dates, because the CSV's timezone was ignored.
  Now,

  1. When a CSV has date-times with an implicit timezone different from yours, you can use the `timezone` rule to declare it.

  2. CSV date-times with a known timezone (either declared by `timezone` or parsed with `%Z`) will be localised to the system timezone
     (or to the timezone set with the `TZ` environment variable).

  (#1936)

Improvements

- print --match now respects -o and -O.

- print --match now returns a non-zero exit code when there is no acceptable match.

- Support megaparsec 9.3. (Felix Yan)

- Support GHC 9.4.

Fixes

- In CSV rules, when assigning a parenthesised account name to   `accountN`, extra whitespace is now ignored, allowing unbalanced postings to be detected correctly.

Scripts/addons

- bin/hledger-move helps record transfers involving subaccounts and costs,
  eg when withdrawing some or all of an investment balance containing many lots and costs.

- bin/hledger-git no longer uses the non-existent git record command.
  (#1942) (Patrick Fiaux)

- bin/watchaccounts is a small shell script for watching the account tree as you make changes.

* hledger 1.27.1 2022-09-18

Fixes

- Balance commands using `-T -O html` no longer fail with an error
  when there is no data to report.
  (#1933)

* hledger 1.27 2022-09-01

Features

- `hledger check recentassertions` (and flycheck-hledger in Emacs if
  you enable this check) requires that all balance-asserted accounts
  have a balance assertion within 7 days before their latest posting.

  This helps remind you to not only record transactions, but also to
  regularly check account balances against the real world, to catch
  errors sooner and avoid a time-consuming hunt.

- The --infer-costs general flag has been added, as the inverse
  operation to --infer-equity.  --infer-costs detects commodity
  conversion transactions which have been written with equity
  conversion postings (the traditional accounting notation) and adds
  PTA cost notation (@@@@) to them (allowing cost reporting).
  See https://hledger.org/hledger.html#equity-conversion-postings .
  (Stephen Morgan)

Improvements

- Many error messages have been improved. Most error messages now use
  a consistent, more informative format.
  (#1436)

- The accounts command has a new --directives flag which makes it
  show valid account directives which you can paste into a journal.

- The accounts command has a new --positions flag which shows where
  accounts were declared, useful for troubleshooting.
  (#1909)

- Bump lower bounds for Diff and githash. (Andrew Lelechenko)

- GHC 8.6 and 8.8 are no longer supported. Building hledger now
  requires GHC 8.10 or greater.

Fixes

- Account display order is now calculated correctly even when accounts
  are declared in multiple files.
  (#1909)

- At --debug 5 and up, account declarations info is logged.
  (#1909)

- hledger aregister and hledger-ui now show transactions correctly
  when there is a type: query.
  (#1905)

- bal: Allow cumulative gain and valuechange reports.
  Previously, --cumulative with --gain or --valuechange would produce an
  empty report. This fixes this issue to produce a reasonable report.
  (Stephen Morgan)

- bal: budget goal amounts now respect -c styles (fixes #1907)

- bal: budget goals now respect -H (#1879)

- bal: budget goals were ignoring rule-specified start date

- cf/bs/is: Fixed non-display of child accounts when there is an
  intervening account of another type.
  (#1921) (Stephen Morgan)

- roi: make sure empty cashflows are skipped when determining first cashflow (Charlotte Van Petegem)
  Empty cashflows are added when the begin date of the report is before the first
  transaction.

Scripts/addons

- https://hledger.org/scripts.html - an overview of scripts and addons in bin/.

- paypaljson, paypaljson2csv - download txns from paypal API

- hledger-check-postable.hs - check that no postings are made to accounts with a postable:(n|no) tag

- hledger-addon-example.hs - script template

* hledger 1.26.1 2022-07-11

- require safe 0.3.19+ to avoid deprecation warning

* hledger 1.26 2022-06-04

Improvements

- `register` and `aregister` have been made faster, by

  - considering only the first 1000 items for choosing column
    widths. You can restore the old behaviour (guaranteed alignment
    across all items) with the new `--align-all` flag.
    ([#1839](https://github.com/simonmichael/hledger/issues/1839), Stephen Morgan)

  - discarding cost data more aggressively, giving big speedups for
    large journals with many costs.
  	([#1828](https://github.com/simonmichael/hledger/issues/1828), Stephen Morgan)

- Most error messages from the journal reader and the `check` command now use
  a consistent layout, with an "Error:" prefix, line and column numbers,
  and an excerpt highlighting the problem. Work in progress.
  ([#1436](https://github.com/simonmichael/hledger/issues/1436)) (Simon Michael, Stephen Morgan)

- `hledger check ordereddates` now always checks all transactions
  (previously it could be restricted by query arguments).

- The `--pivot` option now supports a `status` argument, to pivot on transaction status.

- Update bash completions (Jakob Schöttl)

Fixes

- Value reports with `--date2` and a report interval (like `hledger bal -VM --date2`)
  were failing with a "expected all spans to have an end date" error since 1.22;
  this is now fixed.
  ([#1851](https://github.com/simonmichael/hledger/issues/1851), Stephen Morgan)

- In CSV rules, interpolation of a non-existent field like `%999` or `%nosuchfield`
  is now ignored (previously it inserted that literal text).
  Note this means such an error will not be reported;
  Simon chose this as the more convenient behaviour when converting CSV.
  Experimental.
  ([#1803](https://github.com/simonmichael/hledger/issues/1803), [#1814](https://github.com/simonmichael/hledger/issues/1814)) (Stephen Morgan)

- `--infer-market-price` was inferring a negative price when selling.
  ([#1813](https://github.com/simonmichael/hledger/issues/1813), Stephen Morgan)

- Allow an escaped forward slash in regular expression account aliases.
  ([#982](https://github.com/simonmichael/hledger/issues/982), Stephen Morgan)

- The `tags` command now also lists tags from unused account declarations.
  It also has improved command-line help layout.
  ([#1857](https://github.com/simonmichael/hledger/issues/1857))

- `hledger accounts` now shows its debug output at a more appropriate level (4).

* hledger 1.25 2022-03-04

Breaking changes

- Journal format's `account NAME  TYPECODE` syntax, deprecated in 1.13, has been dropped.
  Please use `account NAME  ; type:TYPECODE` instead.
  (Stephen Morgan)

- The rule for auto-detecting "cash" (liquid asset) accounts in the `cashflow` report
  has changed: it's now "all accounts under a top-level `asset` account, with
  `cash`, `bank`, `checking` or `saving` in their name" (case insensitive, variations allowed).
  So if you see a change in your `cashflow` reports, you might need to add
  `account` directives with `type:C` tags, declaring your top-most cash accounts.

Features

- The new `type:TYPECODES` query matches accounts by their accounting type.
  Account types are declared with a `type:` tag in account directives,
  or inferred from common english account names, or inherited from parent accounts,
  as described at [Declaring accounts > Account types].
  This generalises the account type detection of `balancesheet`, `incomestatement` etc.,
  so you can now select accounts by type without needing fragile account name regexps.
  Also, the `accounts` command has a new `--types` flag to show account types.
  Eg:

      hledger bal type:AL  # balance report showing assets and liabilities
      hledger reg type:x   # register of all expenses
      hledger acc --types  # list accounts and their types

  ([#1820](https://github.com/simonmichael/hledger/issues/1820),
  [#1822](https://github.com/simonmichael/hledger/issues/1822))
  (Simon Michael, Stephen Morgan)

- The `tag:` query can now also match account tags, as defined in account directives.
  Subaccounts inherit tags from their parents.
  Accounts, postings and transactions can be filtered by account tag.
  ([#1817](https://github.com/simonmichael/hledger/issues/1817))

- The new `--infer-equity` flag replaces the `@@`/`@@@@` price notation in commodity
  conversion transactions with more correct equity postings (when not using `-B/--cost`).
  This makes these transactions fully balanced, and preserves the accounting equation.
  For example:

      2000-01-01
        a             1 AAA @@@@ 2 BBB
        b            -2 BBB

      $ hledger print --infer-equity
      2000-01-01
        a                               1 AAA
        equity:conversion:AAA-BBB:AAA  -1 AAA
        equity:conversion:AAA-BBB:BBB   2 BBB
        b                              -2 BBB

  `equity:conversion` is the account used by default. To use a different account,
  declare it with an account directive and the new `V` (`Conversion`) account type.
  Eg:

      account Equity:Trading    ; type:V

  ([#1554](https://github.com/simonmichael/hledger/issues/1554)) (Stephen Morgan, Simon Michael)

- Balance commands (`bal`, `bs` etc.) can now generate easy-to-process "tidy" CSV data
  with `-O csv --layout tidy`.
  In tidy data, every variable is a column and each row represents a single data point
  (cf <https://vita.had.co.nz/papers/tidy-data.html>).
  ([#1768](https://github.com/simonmichael/hledger/issues/1768),
  [#1773](https://github.com/simonmichael/hledger/issues/1773),
  [#1775](https://github.com/simonmichael/hledger/issues/1775))
  (Stephen Morgan)

Improvements

- Strict mode (`-s/--strict`) now also checks periodic transactions (`--forecast`)
  and auto postings (`--auto`).
  ([#1810](https://github.com/simonmichael/hledger/issues/1810)) (Stephen Morgan)

- `hledger check commodities` now always accepts zero amounts which have no commodity symbol.
  ([#1767](https://github.com/simonmichael/hledger/issues/1767)) (Stephen Morgan)

- Relative [smart dates](hledger.html#smart-dates) may now specify an arbitrary number of some period into the future or past).
  Some examples:
  - `in 5 days`
  - `in -6 months`
  - `5 weeks ahead`
  - `2 quarters ago`

  (Stephen Morgan)

- CSV output now always disables digit group marks (eg, thousands separators),
  making it more machine readable by default.
  ([#1771](https://github.com/simonmichael/hledger/issues/1771)) (Stephen Morgan)

- Unicode may now be used in field names/references in CSV rules files.
  ([#1809](https://github.com/simonmichael/hledger/issues/1809)) (Stephen Morgan)

- Error messages improved:
  - Balance assignments
  - aregister
  - Command line parsing (less "user error")

Fixes

- `--layout=bare` no longer shows a commodity symbol for zero amounts.
  ([#1789](https://github.com/simonmichael/hledger/issues/1789)) (Stephen Morgan)

- `balance --budget` no longer elides boring parents of unbudgeted accounts
  if they have a budget.
  ([#1800](https://github.com/simonmichael/hledger/issues/1800)) (Stephen Morgan)

- `roi` now reports TWR correctly

  - when there are several PnL changes occurring on a single day
  - and also when investment is fully sold/withdrawn/discounted at the end of a particular reporting period.

  ([#1791](https://github.com/simonmichael/hledger/issues/1791)) (Dmitry Astapov)

Documentation

- There is a new CONVERSION & COST section, replacing COSTING.
  ([#1554](https://github.com/simonmichael/hledger/issues/1554))

- Some problematic interactions of account aliases with other features have been noted.
  ([#1788](https://github.com/simonmichael/hledger/issues/1788))

- Updated: [Declaring accounts > Account types](https://hledger.org/hledger.html#account-types)

* hledger-lib 1.28 2022-12-01

- Hledger.Utils.Debug's debug logging helpers have been unified.
  The "trace or log" functions log to stderr by default, or to a file
  if ",logging" is appended to the program name (using withProgName).
  The debug log file is PROGNAME.log (changed from debug.log).

- Moved from Hledger.Utils.Debug to Hledger.Utils.Parse:
  traceParse
  traceParseAt
  dbgparse

- Moved from Hledger.Utils.Debug to Hledger.Utils.Print:
  pshow
  pshow'
  pprint
  pprint'
  colorOption
  useColorOnStdout
  useColorOnStderr
  outputFileOption
  hasOutputFile

- Rename Hledger.Utils.Print -> Hledger.Utils.IO, consolidate utils there.

- Hledger.Utils cleaned up.

- Hledger.Data.Amount: showMixedAmountOneLine now also shows costs.
  Note that different costs are kept separate in amount arithmetic.

- Hledger.Read.Common: rename/add amount parsing helpers.

  added:
   parseamount
   parseamount'
   parsemixedamount
   parsemixedamount'

  removed:
   amountp'
   mamountp'

- Hledger.Utils.Parse:
  export customErrorBundlePretty,
  for pretty-printing hledger parse errors.

- Support megaparsec 9.3. (Felix Yan)

- Support GHC 9.4.

- Update cabal files to match hpack 0.35/stack 2.9

* hledger-lib 1.27 2022-09-01

Breaking changes

- Support for GHC 8.6 and 8.8 has been dropped.
  hledger now requires GHC 8.10 or newer.

- Hledger.Data.Amount: `amount` has been dropped; use `nullamt` instead.

- journal*AccountQuery functions have been dropped; use a type: query instead.
  cbcsubreportquery no longer takes Journal as an argument.
  (#1921)

Misc. changes

- Hledger.Utils.Debug now re-exports Debug.Breakpoint from the
  breakpoint library, so that breakpoint's helpers can be used easily
  during development.

- Hledger.Utils.Debug:
  dlog has been replaced by more reliable functions for debug-logging
  to a file (useful for debugging TUI apps like hledger-ui):

  dlogTrace
  dlogTraceAt
  dlogAt
  dlog0
  dlog1
  dlog2
  dlog3
  dlog4
  dlog5
  dlog6
  dlog7
  dlog8
  dlog9

- Hledger.Utils.Debug: pprint' and pshow' have been added,
  forcing monochrome output.

- Hledger.Utils.String: add quoteForCommandLine

- Hledger.Data.Errors: export makeBalanceAssertionErrorExcerpt

- Hledger.Utils.Parse: export HledgerParseErrors

- Debug logging from journalFilePath and the include directive will
  now show "(unknown)" instead of an empty string.

* hledger-lib 1.26.1 2022-07-11

- require safe 0.3.19+ to avoid deprecation warning

* hledger-lib 1.26 2022-06-04

Breaking changes

- readJournal, readJournalFile, readJournalFiles now return
  `ExceptT String IO a` instead of `IO (Either String a)`.
  Internally, this increases composability and avoids some ugly case handling.
  It means that these must now be evaluated with `runExceptT`.
  That can be imported from `Control.Monad.Except` in the `mtl` package,
  but `Hledger.Read` also re-exports it for convenience.

  New variants readJournal', readJournalFiles', readJournalFile' are
  also provided; these are like the old functions but more convenient,
  assuming default input options and needing one less argument.
  (Stephen Morgan)

- parseAndFinaliseJournal' (a variant of parseAndFinaliseJournal) has been removed.
  In the unlikely event you needed it in your code, you can replace:
  ```haskell
  parseAndFinaliseJournal' parser iopts fp t
  ```
  with:
  ```haskell
  initialiseAndParseJournal parser iopts fp t
  >>= liftEither . journalApplyAliases (aliasesFromOpts iopts)
  >>= journalFinalise iopts fp t
  ```

- Some parsers have been generalised from JournalParser to TextParser.
  (Stephen Morgan)

Misc. changes

- Allow doclayout 0.4.

- Our doctests now run with GHC 9.2+ only, to avoid doctest issues.

- Hledger.Data.JournalChecks: some Journal checks have been moved and renamed:
  journalCheckAccounts,
  journalCheckCommodities,
  journalCheckPayees

- Hledger.Data.Errors: new error formatting helpers
  makeTransactionErrorExcerpt,
  makePostingErrorExcerpt,
  transactionFindPostingIndex

- HledgerParseErrors is a new type alias for our parse errors.
  CustomErr has been renamed to HledgerParseErrorData.

- Hledger.Query: added
  matchesQuery,
  queryIsCode,
  queryIsTransactionRelated

- Improve ergonomics of SmartDate constructors.
  (Stephen Morgan)

- Hledger.Utils: Add a helper function numDigitsInt to get the number
  of digits in an integer, which has a surprising number of ways to
  get it wrong.
  ([#1813](https://github.com/simonmichael/hledger/issues/1813) (Stephen Morgan)

* hledger-lib 1.25 2022-03-04

- hledger-lib now builds with GHC 9.2 and latest deps.
  ([#1774](https://github.com/simonmichael/hledger/issues/1774)

- Journal has a new jaccounttypes map.
  The journalAccountType lookup function makes it easy to check an account's type.
  The journalTags and journalInheritedTags functions look up an account's tags.
  Functions like journalFilterPostings and journalFilterTransactions,
  and new matching functions matchesAccountExtra, matchesPostingExtra
  and matchesTransactionExtra, use these to allow more powerful matching
  that is aware of account types and tags.

- Journal has a new jdeclaredaccounttags field
  for easy lookup of account tags.
  Query.matchesTaggedAccount is a tag-aware version of matchesAccount.

- Some account name functions have moved from Hledger.Data.Posting
  to Hledger.Data.AccountName:
  accountNamePostingType, accountNameWithPostingType, accountNameWithoutPostingType,
  joinAccountNames, concatAccountNames, accountNameApplyAliases, accountNameApplyAliasesMemo.

- Renamed: CommodityLayout to Layout.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2022/09/07 06:50:53 pho Exp $
d16 6
a23 1
.include "../../devel/hs-base-compat-batteries/buildlink3.mk"
d35 1
a35 1
.include "../../time/hs-old-time/buildlink3.mk"
a48 1
.include "../../textproc/hs-Diff/buildlink3.mk"
@


1.11
log
@Recursive bump for recently updated Haskell packages
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2022/08/20 08:08:24 wiz Exp $
d3 1
a3 1
DISTNAME=	hledger-1.24.1
a4 1
PKGREVISION=	4
@


1.10
log
@hs*: recursive bump for new dependencies needed

for hs-aeson, hs-vector
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2022/02/26 03:58:13 pho Exp $
d5 1
a5 1
PKGREVISION=	3
@


1.9
log
@Bump all Haskell packages after enabling "split sections" in mk/haskell.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2022/02/12 08:50:42 pho Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.8
log
@revbump after changing the default Haskell compiler
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2022/02/12 07:59:09 pho Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.7
log
@Update to hledger-1.24.1

The list of changes since 1.21 is too long to paste here:
https://hackage.haskell.org/package/hledger-1.24.1/changelog
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2022/01/18 02:48:16 pho Exp $
d5 1
@


1.6
log
@Bump packages that depends on GHC
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2021/05/03 19:01:06 pho Exp $
d3 1
a3 1
DISTNAME=	hledger-1.21
a4 1
PKGREVISION=	2
d11 5
d24 1
@


1.5
log
@*: Bump PKGREVISION for ghc-9.0.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2021/04/26 07:34:31 pho Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.4
log
@Add a comment about the kludge
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2021/04/24 11:12:09 pho Exp $
d5 1
@


1.3
log
@Update to hledger-1.21

The change log is too long to paste here. See
http://hackage.haskell.org/package/hledger-1.21/changelog
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2020/03/30 17:52:39 riastradh Exp $
d49 8
@


1.2
log
@Hack to make the hledger build run in C.UTF-8 locale.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2020/03/30 16:52:48 riastradh Exp $
d3 3
a5 4
.include "../../finance/hledger/common.mk"

HASKELL_PKG_NAME=	hledger
CATEGORIES=		finance
a7 1
HOMEPAGE=	https://github.com/simonmichael/hledger/
d11 24
a34 2
USE_LANGUAGES=	# none

a36 2
.include "../../finance/hledger-lib/buildlink3.mk"
.include "../../math/hs-math-functions/buildlink3.mk"
a37 1
.include "../../sysutils/hs-temporary/buildlink3.mk"
a38 2
.include "../../textproc/hs-lucid/buildlink3.mk"
.include "../../textproc/hs-shakespeare/buildlink3.mk"
@


1.1
log
@hledger: Import version 1.17.1.1

XXX Requires setting LANG=C.UTF-8 during hledger build stage.
@
text
@d1 1
a1 1
# $NetBSD$
d25 9
@

