Commit Graph

8268 Commits

Author SHA1 Message Date
Simon Michael
71f3f8295a ci: github: tweaks 2020-03-06 01:05:18 -08:00
Simon Michael
bba0c0121d ci: github: tweaks 2020-03-06 00:58:41 -08:00
Simon Michael
d5b28c5a3d ci: github: tweaks 2020-03-06 00:56:06 -08:00
Simon Michael
e1cffdfe06 ci: github: tweaks 2020-03-06 00:55:12 -08:00
Simon Michael
7457b2870a ci: github: tweaks 2020-03-06 00:52:51 -08:00
Simon Michael
8ec825d74c ci: github: tweaks 2020-03-06 00:51:34 -08:00
Simon Michael
d68f5cf136 ci: github: tweaks 2020-03-06 00:33:35 -08:00
Simon Michael
146c1fe03e ci: github: tweaks 2020-03-06 00:32:12 -08:00
Simon Michael
fe0149ac93 ci: github: that worked, try all os's again 2020-03-06 00:22:39 -08:00
Simon Michael
e02d711df1 ci: github: windows-latest on its own 2020-03-06 00:11:30 -08:00
Simon Michael
b6bf0cc12b ci: github: disable unused get-package action, link to action docs 2020-03-06 00:10:34 -08:00
Simon Michael
4191190073 ci: github: fix ~/.stack caching 2020-03-06 00:00:44 -08:00
Simon Michael
7b39151346 ci: github: drop windows for now, not recognised 2020-03-05 19:57:41 -08:00
Simon Michael
28cedbfc88 ci: github: more tweaks 2020-03-05 19:51:57 -08:00
Simon Michael
6ce2854543 ci: github: try another windows os name 2020-03-05 19:13:11 -08:00
Simon Michael
4693212bcd ci: github: try adding mac/windows, caching 2020-03-05 19:02:59 -08:00
Simon Michael
d97ec1640b ci: try github actions 2020-03-05 18:28:04 -08:00
Simon Michael
432b1c8ff4 ;doc: update manual versions
[ci skip]
2020-03-05 15:51:54 -08:00
Simon Michael
21fdcec6b7 journal: inclusive balance assignments now work (#1207) 2020-03-05 13:38:19 -08:00
Simon Michael
41bb7865f3 ;convert balance assertion/assignment tests to new format
And update a seemingly obsolete test description.

[ci skip]
2020-03-05 11:19:21 -08:00
Simon Michael
f18c74fff7 ;journal: a test for inclusive balance assignment, disabled (#1207)
[ci skip]
2020-03-05 11:19:04 -08:00
Simon Michael
5ed6fe586a ;refactor transaction balancing/checking (#1207) 2020-03-05 11:18:59 -08:00
Simon Michael
9b349d9d41 ;stack-8.10: update, use lts-15
[ci skip]
2020-03-03 17:21:47 -08:00
Simon Michael
66d2897cc9 ;doc: changelog entry
[ci skip]
2020-03-02 12:49:16 -08:00
Stephen Morgan
e0dde6fe57 lib: Remove non-law-abiding Monoid instance for Journal. 2020-03-02 12:45:30 -08:00
Stephen Morgan
702c958487 lib: Replace some utility functions with library functions. 2020-03-02 12:45:30 -08:00
Simon Michael
0ddb5fa4e3 ;doc: drop some old macros
[ci skip]
2020-03-01 22:46:55 -08:00
Simon Michael
5b7c7243ea install: bump hledger-lib version
[ci skip]
2020-03-01 22:11:50 -08:00
Simon Michael
61679e0178 ;lib: doc: changelog 2020-03-01 22:06:58 -08:00
Simon Michael
2ea66bcda4 ;lib: bump version to 1.17.0.1
hledger's first use of the fourth version component.
[ci skip]
2020-03-01 22:06:55 -08:00
Simon Michael
473531706d ;doc: announce: typo
[ci skip]
2020-03-01 22:01:23 -08:00
Simon Michael
374be00223 ;lib: fix org headings and doctest setup that were breaking haddock
(and in some cases, installation).
[ci skip]
2020-03-01 22:00:39 -08:00
Simon Michael
db877d7355 ;doc: announcement 2020-03-01 18:14:42 -08:00
Simon Michael
e415ef0ec1 install: bump versions for 1.17
[ci skip]
2020-03-01 17:43:24 -08:00
Simon Michael
6dfdc2bee8 ;one more cabal file update. Not in hackage tarballs. 2020-03-01 17:42:20 -08:00
Simon Michael
07a05d5c76 ;doc: finalise changelogs
More cleanup needed, but time's up.

[ci skip]
2020-03-01 17:33:18 -08:00
Simon Michael
061bf73b61 ;doc: regen manuals
[ci skip]
2020-03-01 17:29:01 -08:00
Simon Michael
ba44d00bed ;bump version to 1.17 2020-03-01 17:29:01 -08:00
Simon Michael
889767f1bd ;bump tested-with
[ci skip]
2020-03-01 17:28:43 -08:00
Simon Michael
04fb132496 ;doc: draft changelogs
[ci skip]
2020-03-01 16:44:28 -08:00
Simon Michael
000434083a ;stack[-8.10]: consistency cleanups
[ci skip]
2020-03-01 15:01:37 -08:00
Simon Michael
b7c815aff5 ;stack-8.2/4/6: ensure new-enough wai-handler-launch
[ci skip]
2020-03-01 15:01:09 -08:00
Simon Michael
a70e6bd08f ;stack-8.0: disable hledger-web for lack of wai-handler-launch install plan
[ci skip]
2020-03-01 14:39:28 -08:00
Simon Michael
752e8ed49a ;timedot: update docs 2020-03-01 14:06:29 -08:00
Simon Michael
07258d727f ;timedot: parsing fixes; allow blank lines/comments within days 2020-03-01 14:06:29 -08:00
Simon Michael
b9954bff60 journal, lib: the include directive no longer guesses the format
The include directive now tries just one reader, based on the file
extension and defaulting to journal, like the rest of hledger.
(It doesn't yet handle a reader prefix.)

Reader-finding utilities have moved from Hledger.Read to
Hledger.Read.JournalReader so the include directive can use them.

Reader changes:
- rExperimental flag removed
- old rParser renamed to rReadFn
- new rParser field provides the actual parser.
  This seems to require making Reader a higher-kinded type, unfortunately.
2020-03-01 14:06:29 -08:00
Simon Michael
b1f3880c3d lib: drop the file format auto-detection feature
For a long time hledger has auto-detected the file format when it's
not known, eg when reading from a file with unusual extension (like
.dat or .txt), or from standard input (-f-), or when using the include
directive (which currently ignores file extensions).

Auto-detecting has been done by trying all readers until one succeeds.
This could guess wrong in some cases, but it was so rare that it has
been working fine.

Recently, more conveniences have been added to timedot format,
increasing its overlap with journal format, which makes this kind of
auto-detection unreliable.

Auto-detection and auto-detection failures are (probably) still pretty
rare in practice. But when it does happen it's confusing, giving
misleading errors or false successes (eg printing timedot entries
instead of a journal error).

For predictability and to minimise confusion, hledger no longer tries
to guess; when there's no file extension or reader prefix, it assumes
journal format. To specify one of the other formats, you must use a
standard file extension (.timeclock, .timedot, .csv, .ssv, .tsv), or a
reader prefix (-f csv:foo.txt, -f timedot:-).

For now, the include directive still tries to autodetect
(journal/timeclock/timedot), and this can't be overridden; it will be
fixed later.

Experimental; testing and feedback welcome.
2020-03-01 14:06:29 -08:00
Simon Michael
32eb839eac timedot: rewrite the parser, making it more usable
Now, org headlines before the first day entry are ignored,
regardless of content.

Note, blank lines inside a day entry are not allowed, currently.

It's now easier to be both valid journal and valid timedot at the same
time, so guessing the format of stdin is unreliable, and some tests
are failing. See following commit.
2020-03-01 14:06:29 -08:00
Simon Michael
26c19c65b0 timedot: allow a note after the date, use as transaction descriptions 2020-03-01 14:06:29 -08:00
Simon Michael
190233b576 timedot: more org support: dates/entries can be org headlines
Org headline prefixes (stars and space at beginning of line) are ignored.
2020-03-01 14:06:29 -08:00