Commit Graph

7699 Commits

Author SHA1 Message Date
Simon Michael
85d48a6b0e ;doc: regen manuals (on server)
Usually done on my laptop, but the toolchain on both machines should
produce the same result these days..

[ci skip]
2019-09-09 08:04:26 -07:00
Simon Michael
fb521e248b ;doc: journal: periodic transactions: more tweaks
[ci skip]
2019-09-09 08:02:22 -07:00
Simon Michael
94d3eb1cfb ;doc: journal: periodic transactions: more fixes, clarifications
[ci skip]
2019-09-09 07:45:09 -07:00
Simon Michael
901e5174d7 ;doc: journal: highlight some gotchas with periodic transactions
[ci skip]
2019-09-09 07:10:26 -07:00
Simon Michael
3b35e0afca ;site: manuals: fix many links that went to a prerelease manual
[ci skip]
2019-09-09 06:24:08 -07:00
Simon Michael
499e20c0b2 lib, cli, ui: start using Control.Monad.Fail, allow base-compat 0.11
fail is moving out of Monad and into it's own MonadFail class.
This will be enforced in GHC 8.8 (I think).

base-compat/base-compat-batteries 0.11.0 have adapted to this,
and are approaching stackage nightly
(https://github.com/commercialhaskell/stackage/issues/4802).

hledger is now ready to build with base-compat-batteries 0.11.0, once
all of our deps do (eg aeson). We are still compatible with the older
0.10.x and GHC 7.10.3 as well.

For now we are using both fails:

- new fail (from Control.Monad.Fail), used in our parsers, imported
  via base-compat-batteries Control.Monad.Fail.Compat to work with
  older GHC versions.

- old fail (from GHC.Base, exported by Prelude, Control.Monad,
  Control.Monad.State.Strict, Prelude.Compat, ...), used in easytest's
  Test, since I couldn't find their existing fail implementation to update.

To reduce (my) confusion, these are imported carefully, consistently,
and qualified everywhere as Fail.fail and Prelude.fail, with clashing
re-exports suppressed, like so:

import Prelude hiding (fail)
import qualified Prelude (fail)
import Control.Monad.State.Strict hiding (fail)
import "base-compat-batteries" Prelude.Compat hiding (fail)
import qualified "base-compat-batteries" Control.Monad.Fail.Compat as Fail
2019-09-08 17:13:47 -07:00
Simon Michael
c7746131fc ;lib: clarify parser monad transformers a little
[ci skip]
2019-09-08 10:40:47 -07:00
Simon Michael
39635b2fde ;valuation: test documenting new end-date behaviour (#1083)
[ci skip]
2019-09-05 21:03:30 -07:00
Simon Michael
21ba8eb713 ;install: bump to 1.15.2
[ci skip]
2019-09-05 15:43:53 -07:00
Simon Michael
89c3011df4 ;doc: 1.15.2 changelogs
[ci skip]
2019-09-05 15:35:59 -07:00
Simon Michael
7ae75022bf ;doc: regen manuals 2019-09-05 15:35:44 -07:00
Simon Michael
cd5af48165 lib, cli: bump version to 1.15.2 2019-09-05 15:35:19 -07:00
Simon Michael
ff41603a75 ;doc: valuation: also link to #1083
[ci skip]
2019-09-05 14:23:17 -07:00
Simon Michael
a7f172b085 valuation: -V/-X respects report end date, code/doc cleanups (#1083)
-V (and -X) now respects a report end date set with -e/-p/date: when
choosing the valuation date, similar to hledger 1.14 and Ledger.

This means that -V/-X aren't exactly like either --value=end or
--value=now. The "Effect of --value on reports" doc has been extended
accordingly, and much of it has been reworded and made more accurate.
2019-09-05 13:41:36 -07:00
Simon Michael
e73b7c2635 ;doc: document effect of valuation on reports more thoroughly
A column for -V/-X has been added (it differs in some cases, cf

[ci skip]
2019-09-04 19:16:57 -07:00
Simon Michael
1f3c3723db ;doc: cli: try to clarify valuation docs, note #1083
[ci skip]
2019-09-03 13:32:30 -07:00
Simon Michael
70c349cd1e ;install: bump resolver down to lts-14.3 to avoid 14.4 404 issue
[ci skip]
2019-09-02 14:51:08 -07:00
Simon Michael
6d4d43dc62 ;lib, cli: fix 1.15.1 changelog heading
[ci skip]
2019-09-02 12:53:51 -07:00
Simon Michael
7374f7bb4e ;install: update for 1.15.1
[ci skip]
2019-09-02 12:31:28 -07:00
Simon Michael
90e5a5f95b ;lib, cli: don't forget to commit the cabal file 2019-09-02 12:31:06 -07:00
Simon Michael
8148136e71 cli: note command docs omitted from 1.15, bump to 1.15.1 2019-09-02 12:26:48 -07:00
Simon Michael
08e011af37 lib: note doctests fix (omitted from 1.15), bump to 1.15.1 2019-09-02 12:25:29 -07:00
Simon Michael
ebacb20b5e ;doc: regen hledger plaintext manual too
[ci skip]
2019-09-02 11:58:10 -07:00
Simon Michael
16a3c96da0 ;doc: regen manuals
[ci skip]
2019-09-02 11:11:56 -07:00
Simon Michael
68262c59ed ;shake manuals: workaround to avoid ANSI codes in plaintext help
This seems to be a groff bug, as of 1.22.3 & 1.22.4. It always calls
grotty with no flags, even with -c, so grotty adds ANSI/SGR escape
codes in the -Tascii output.

Now instead of groff, we call the lower level commands directly,
requiring tbl, eqn, troff, grotty to be in PATH and compatible.
Not ideal.

[ci skip]
2019-09-02 11:05:28 -07:00
Simon Michael
2a2cec4c4a ;make tag: drop nonexistent path causing this to fail
[ci skip]
2019-09-02 07:17:34 -07:00
Simon Michael
3654ac5239 ;doc: cli: clean up -V/-X a little
[ci skip]
2019-09-02 06:27:09 -07:00
Simon Michael
319f0e5224 ;doc: cli: tweak comments to avoid confusing markdown-mode
[ci skip]
2019-09-02 06:19:24 -07:00
Simon Michael
b2710c698c ;doc: cli: add missing commands to manual
commodities, descriptions, diff, notes, payees

[ci skip]
2019-09-02 06:16:52 -07:00
Simon Michael
9664194f20 ;doc: cli: drop obsolete comments
[ci skip]
2019-09-02 06:11:01 -07:00
Simon Michael
e9c28fd9a3 ;doc: journal: drop unused file
[ci skip]
2019-09-02 06:10:22 -07:00
Simon Michael
b919c92892 ;doc: journal: change some comments to avoid confusing markdown-mode
[ci skip]
2019-09-02 06:09:35 -07:00
Simon Michael
bb20485bf5 ;doc: README note
[ci skip]
2019-09-01 10:02:15 -07:00
Simon Michael
2cca596d7c ;doc: 1.15 announcement
[ci skip]
2019-09-01 10:00:16 -07:00
Simon Michael
6703057050 ;doc: more changelog cleanups
[ci skip]
2019-09-01 09:59:51 -07:00
Simon Michael
f6fc58955e ;make: drop hledger-api from scripts
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
ede6a51f08 ;doc: finalise changelogs
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
00f3ad8d3f ;doc: changelogs
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
82da5a537b install: bump to lts-14.4, hledger 1.15, drop hledger-api
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
32154131c9 ;stack: bump default snapshot to lts-14.4
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
b1859769ac ;doc: regen man pages
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
29f7654c3a bump versions to 1.15 2019-09-01 08:53:06 -07:00
Simon Michael
cf07b25f97 ;api: bump swagger2 upper bound
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
113f193486 api: drop from Shake scripts
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
9cdbce288c ;descriptions/notes/payees: fix build warning 2019-08-31 18:36:03 -07:00
Simon Michael
095badd7f9 ;fix doctests 2019-08-31 17:15:48 -07:00
Simon Michael
c2736be4aa ;doc: changelogs
[ci skip]
2019-08-30 21:26:23 -07:00
Simon Michael
63fec5a8a8 ;install: bump hledger-ui version, bump resolver (#709/#1077)
[ci skip]
2019-08-30 08:33:39 -07:00
zieone
ea2d6d2077 update resolver to lts-13.27 for freebsd12 2019-08-30 08:29:18 -07:00
Simon Michael
40200b60a6 ;site: also drop 0.27 manual from shake scripts
[ci skip]
2019-08-30 08:00:21 -07:00