Commit Graph

4672 Commits

Author SHA1 Message Date
Simon Michael
146ba133c6 update recommended snapshots, make GHC8/lts-7 the default 2016-10-20 16:56:29 -07:00
Simon Michael
1953f20136 shake: small comment fix 2016-10-17 08:53:38 -07:00
Simon Michael
ca9a247d99 tools: drop stats from defaults bench tests 2016-10-11 14:48:29 -07:00
Simon Michael
d2b458197d site: devguide: link stargazers forks list 2016-10-11 14:43:30 -07:00
Dominik Süß
36d2998b77 Added .btn-default to unify buttons across browsers (#418) 2016-10-11 14:00:30 -07:00
Simon Michael
cf71a803f9 csv: add a failing test for #415 2016-10-08 15:20:26 -10:00
Moritz Kiefer
981b6f6594 Add a cabal.project file (#411) 2016-10-05 07:15:13 -10:00
Moritz Kiefer
c7cd540bff Ignore dist-newstyle (#408) 2016-10-04 08:11:43 -10:00
Hans-Peter Deifel
ae73c525d8 Fix csv rules parsing (#407)
* csv rules: Show prettier parsing errors

This goes from

  hledger: user error ("ParseError {errorPos = SourcePos {sourceName = \"foo.csv.rules\",
  sourceLine = Pos 20, sourceColumn = Pos 1} :| [], errorUnexpected =
  fromList [Tokens (' ' :| \"\")], errorExpected = fromList [Label ('b' :| \"lank or comment
  line\"),EndOfInput], errorCustom = fromList []}")

to

  hledger: user error (foo.csv.rules:20:1:
  unexpected space
  expecting blank or comment line or end of input
  )

* csv rules: Fix parsing of empty field values

A single line containing `account1 ` (note the space at the end) should
parse as assignment of the empty string to account1. At least it did
until commit 4141067.

The problem is that megaparsec's `space` parses multiple space
characters as opposed to parsec. So in the example above it would
incorrectly consume the newline.

This commit also adds a new test case for this bug.
2016-09-25 12:56:28 -07:00
Simon Michael
3efa123812 api: add request logging 2016-09-22 11:56:38 -07:00
Simon Michael
c53005f121 doc: punctuation, doesn't look right 2016-09-22 11:13:42 -07:00
Simon Michael
458a8735d7 makefile, doc tweaks 2016-09-21 09:35:11 -07:00
Simon Michael
18bed45e1a bal: draft some tests for #373 2016-09-21 09:34:01 -07:00
Simon Michael
c3326ba943 git: don't ignore filenames beginning with a number 2016-09-21 09:32:54 -07:00
Simon Michael
f23438ce80 stack: use latest snapshots 2016-09-21 08:51:19 -07:00
Simon Michael
55bced296b commit ascii journal test file referenced by #373 2016-09-19 11:56:20 -07:00
Simon Michael
02bdbd8877 site: download updates
[ci skip]
2016-09-14 17:20:07 -07:00
Simon Michael
86c23bde7f doc: journal: fix posting dates link (fixes #401)
[ci skip]
2016-09-14 06:57:44 -07:00
Simon Michael
885d6974a9 site: download: cleanups 2016-09-13 12:11:48 -07:00
Simon Michael
992fd214f9 site: download: switch html table to markdown 2016-09-13 11:38:56 -07:00
Simon Michael
68051d35f5 site: download: more cleanups
[ci skip]
2016-09-13 09:29:32 -07:00
Simon Michael
233251b06a doc: journal: clarify D directive
Example added, per #399 discussion.
2016-09-13 09:11:08 -07:00
Simon Michael
55bc2e3e38 site: download page updates (#400)
Update commands, more detail, mention cabal again, begin suggesting os-specific C libs
2016-09-13 09:00:17 -07:00
Simon Michael
17d96d351b extra: hledger-rewrite: doc tweak
[ci skip]
2016-09-07 07:49:08 -07:00
Simon Michael
6439744fa2 extra: give hledger-rewrite.hs a stack script header
and some guidance for compiling or interpreting it.
This may be helpful for getting started, although the suggested
commands still require that you're in the hledger source tree.
2016-09-07 07:39:10 -07:00
Simon Michael
98250d043d Merge branch 'ascjones-master' 2016-09-07 07:00:01 -07:00
Andrew Jones
96fc6ced6a extra: fix up hledger-rewrite to work with Megaparsec 2016-09-06 21:02:41 +01:00
Simon Michael
8c7e7c02c3 ui, lib: another historical balance fix for accountTransactionsReport 2016-09-06 08:43:25 -07:00
Simon Michael
2f4dde3699 lib: debug utils cleanup 2016-09-06 08:31:53 -07:00
Simon Michael
b262be7838 ui: fix wrong register start balance in historical mode
90c0d40 a few weeks ago miscalculated the starting balance
in accountTransactionsReport. Possibly also affects
-web and -api.
2016-09-05 14:45:02 -07:00
Simon Michael
9396bc6711 lib: fix ghc 8 warnings in Read.Common 2016-09-05 14:31:56 -07:00
Simon Michael
1362784546 ui: help: reset wording 2016-09-05 10:57:05 -07:00
Simon Michael
8c32af581b ui: use full narrow terminal width for help dialog 2016-09-05 10:56:38 -07:00
Simon Michael
4ceda8f985 timeclock: fix order of transaction indexes #394
Timeclock transaction ids now count up rather than down.

Also, remove old code for appending timeclock transactions to journal transactions,
a holdover from the days when both were allowed in one file.
2016-08-14 14:50:03 -07:00
Simon Michael
72c39470d6 lib: non-journal formats now produce transaction ids #394
Transactions are now numbered consistently during journal finalisation,
rather than just in the journal reader. Also transaction knot-tying has been
moved out of journalBalanceTransactions.
2016-08-14 12:44:19 -07:00
Simon Michael
f864efdb07 reg: csv: include txn index, rename total field (fixes #391) 2016-08-14 10:15:45 -07:00
Simon Michael
332a19ccd8 print: csv: show proper txn index, rename to "txnidx" 2016-08-14 10:15:00 -07:00
Simon Michael
2585c1eedf lib: rename sample.timelog to sample.timeclock 2016-08-14 10:13:28 -07:00
Simon Michael
389385f2b5 lib: delete unused sample file 2016-08-14 10:13:11 -07:00
Simon Michael
a4cf233312 ui: keep next/previous period within the journal's date span 2016-08-13 08:08:43 -07:00
Simon Michael
5ea088d1ca bs,is,cf: add functional tests, fix bs infinite loop #393 2016-08-13 07:47:43 -07:00
Simon Michael
ef961f51ac ui: quick help formatting fix 2016-08-12 18:06:02 -07:00
Simon Michael
eaba311634 doc: update generated manuals 2016-08-12 17:46:12 -07:00
Simon Michael
4e3c0cc936 ui: historical/period toggle, help updates
accounts and register screens can now switch between "historical"
(default) and "period" modes

title header wording is clearer

quick help footer now indicates historical/period and tree/flat modes,
saving space in the title

help screen is more explanatory

the enter key has been reserved for later and is no longer an alias
for right/l
2016-08-12 17:44:55 -07:00
Simon Michael
f3bcf570e5 lib: simplify account txns report running total
The account transactions report used for hledger-ui and -web registers
now gives either the "period total" or "historical total", depending
strictly on the --historical flag. It doesn't try to tell the user
whether the historical total is the accurate historical balance (which
depends on the report query).
2016-08-12 17:26:34 -07:00
Simon Michael
69ebc3b159 bal, reg, stats: clarify report modes, output, options
- try to clarify naming and meaning of balance/register report modes
  and kinds of "balance" displayed. Added balance --change and
  register --cumulative flags to clarify report modes.

- with multiple --change/--cumulative/--historical flags use the last
  instead of complaining

- register -A is now affected by -H

- options cleanups
2016-08-12 09:44:31 -07:00
Simon Michael
c1ddbfc08a drop unusual "d" suffix when showing a day period 2016-08-11 11:23:05 -07:00
Simon Michael
1d6ca47536 ui: set report period from date: query args, also
date2: and --date2 might also affect it somehow, untested.
2016-08-10 10:24:43 -07:00
Simon Michael
9df96cdace ui: doc: clarify 2016-08-10 07:24:21 -07:00
Simon Michael
af9daa3b11 ui: use only shift-cursor keys for period; simplify 2016-08-10 07:17:35 -07:00