Commit Graph

3368 Commits

Author SHA1 Message Date
Simon Michael
71beb27503 tools: build haddocks by package, using cabal 2014-07-08 11:52:06 -07:00
Simon Michael
9f991fa94b tweak Regex haddock 2014-07-08 11:50:19 -07:00
Simon Michael
14b5d1ca3e web: fix a haddock breakage 2014-07-08 11:49:34 -07:00
Simon Michael
b499ea85eb register: optimise postingsReportItemAsText a bit
Avoid concatTopPadded when rendering register output, making that
command faster when there's a lot of output.
2014-07-07 08:37:27 -07:00
Simon Michael
101719d3cb tools: cabal.config to enable profiing in sandbox 2014-07-07 08:36:31 -07:00
Simon Michael
5bebc2beb0 regex haddock fix 2014-07-06 14:08:45 -07:00
Simon Michael
3a16e6cfc7 mostly replace slow regexpr with regex-tdfa (fixes #189) 2014-07-06 14:03:28 -07:00
Simon Michael
4c509ff933 tools: make repl[lib,web], cabal repl in each package 2014-07-06 10:47:45 -07:00
Simon Michael
7d984fb2e4 tools: fancy .ghci for hledger-web
Some configuration for running hledger-web in ghci, and misc. utilities
including hlint/hoogle/hayoo and a not-yet-working yesod devel-like
reloader from a recent reddit thread. (If enabling these, also uncomment
the required libs in hledger-web.cabal). Although it's not yet
automated, we can now test hledger-web changes without relinking:

>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
Press ctrl-c to quit
  C-c C-cInterrupted.
>>> :r
Ok, modules loaded: Settings, Main, Hledger.Web.Main, Application, Hledger.Web.Options, Settings.Development, Import, Handler.RootR, Handler.JournalR, Handler.RegisterR, Handler.SidebarR, Handler.Common, Handler.Utils, Foundation, Settings.StaticFiles, Handler.Post.
>>> :serve
Starting web app on port 3000 with base url http://localhost:3000
2014-07-06 10:38:41 -07:00
Simon Michael
e13dd554a1 tools: benchmarking updates 2014-07-06 10:19:34 -07:00
Simon Michael
b6ad593c8a tools: use cabal builds for profiling 2014-07-06 10:16:56 -07:00
Simon Michael
187a4ec123 update bin/README 2014-07-06 10:12:09 -07:00
Simon Michael
04f6162e19 extract regular expression utils module 2014-07-06 10:11:02 -07:00
Simon Michael
8fe26fe345 web: add form stricter parsing, better errors (fixes #194) 2014-07-05 13:07:57 -07:00
Simon Michael
f30deee197 web: fix compilation after recent lib changes 2014-07-03 09:37:02 -07:00
Simon Michael
16f8b78305 balance: show multi-commodity amts on one line (fixes #186)
To avoid totally breaking the layout of multicolumn balance reports when
there are multi-commodity balances, these are now rendered on a single
line, comma separated. Simple balance reports still use the old vertical
format for now.
2014-07-03 07:45:55 -07:00
Simon Michael
3669422bbf make --width and --debug require an argument (fixes #149)
This is a workaround for a cmdargs limitation. Having "--debug 2"
or "--width 100" produce no output (because the number is parsed
as a separate argument) is too annoying.
2014-07-03 07:31:52 -07:00
Simon Michael
c31710d942 look harder for decimal point & digit groups (fixes #196)
Amount display styles have been reworked a bit; they are now calculated
after journal parsing, not during it. This allows the fix for #196:
we now search through the amounts until a decimal point is detected,
instead of just looking at the first one; likewise for digit groups.
Digit groups are now implemented with a better type.

Digit group size detection has been improved a little:
1000,000 now gives group sizes [3,4,4,...], not [3,3,...], and
10,000 gives groups sizes [3,3,...] not [3,2,2,..].
(To get [3,2,2,...] you'd use eg 00,00,000.)

There are still some old (or new ?) issues; I don't think we handle
inconsistent decimal points & digit groups too well. But for now all
tests pass.
2014-07-02 23:26:16 -07:00
Simon Michael
647d5833ff clarify dbgAtM issue 2014-07-02 23:24:58 -07:00
Simon Michael
330dfe6891 commodity & amount style parser cleanups, part 2 2014-07-02 17:41:33 -07:00
Simon Michael
9b4b85b4bf commodity & amount style parser cleanups 2014-07-02 11:23:30 -07:00
Simon Michael
8ae303f685 assert only a single commodity, like Ledger (fixes #195)
This change means you can make assertions on a multi-commodity account
balance (asserting one commodity at a time). On the flip side, you can
no longer assert the complete balance of an account (new unexpected
commodities will not be detected.) We might restore that ability later,
using the == syntax.
2014-07-02 07:35:06 -07:00
Simon Michael
0c3148ac7b add an --ignore-assertions flag
Can be helpful when reading Ledger files, where assertions may have
different semantics; or for getting some answers from your journal
to help you fix your assertions.

Could be called --no-assertions, but this might create surprise when it
has an effect contrary to --no-new-accounts.

I had to add another flag throughout the parsers & journal read
functions, ok for now.
2014-07-01 18:26:37 -07:00
Simon Michael
04cfdac0ce query: add >= and <= for amt queries 2014-06-29 11:09:13 -07:00
Simon Michael
201521dc5a a few tweaks 2014-06-24 14:51:09 -07:00
Simon Michael
3b30837a23 web: allow warp 3*, wai-handler-launch 3* 2014-06-21 20:36:46 -07:00
Simon Michael
2eb74d19c6 changelog 2014-06-21 20:14:11 -07:00
Simon Michael
6393293414 allow transformers 0.4* 2014-06-21 20:13:16 -07:00
Simon Michael
466c907272 tools: git ignore *.dyn* 2014-06-14 14:33:35 -07:00
Simon Michael
4f0b4ea36c web: add missing hs & js files 2014-06-14 14:33:11 -07:00
Simon Michael
09ec9b2f90 web: help tweaks 2014-06-13 00:39:15 +01:00
Simon Michael
5af4ef33ab web: fix a warning 2014-06-13 00:21:26 +01:00
Simon Michael
71bd9f4110 web: changelog 2014-06-13 00:19:18 +01:00
Simon Michael
b25563b59f web: fix manual link 2014-06-13 00:19:12 +01:00
Simon Michael
ec51d28839 web: a bunch of ui cleanup & improvement
- the web UI has been streamlined; edit form, raw & entries views dropped
- we now remember whether sidebar is open or closed
- better help dialog
- keyboard shortcuts are now available
- better add form
- more bootstrap styling
- static file cleanups
- report filtering fixes
- upgrade jquery to 2.1.1, bootstrap to 3.1.1, drop select2, add typeahead, cookie, hotkeys
- clarify debug helpers a little
- refactoring
2014-06-13 00:19:00 +01:00
Simon Michael
34f4800e82 Revert "remove Setup.hs files again, fixing a yesod devel warning"
Setup.hs are required by the Hydra buildbot.

This reverts commit 97ab3db8f0.
2014-05-24 13:39:09 -07:00
Simon Michael
884f64e292 web: reduce ui over-complexity
For now, you can do three things in the web ui: add a transaction, view
journal entries, view an account register. Filtering is not quite right yet.
2014-05-24 08:23:02 -07:00
Simon Michael
adde48a805 web: small column heading improvements 2014-05-24 08:20:33 -07:00
Simon Michael
b22cb66319 refactor amount filtering helpers 2014-05-23 13:10:36 -07:00
Simon Michael
3ff7fe7f1b web: more static file cleanups 2014-05-23 10:20:20 -07:00
Simon Michael
13bc4d58ec web: update static files in cabal file 2014-05-23 09:46:11 -07:00
Simon Michael
6ecb2b9882 web: style.css -> hledger.css 2014-05-23 09:45:55 -07:00
Simon Michael
eea10d4420 web: upgrade jquery to 2.1.1 2014-05-23 09:34:32 -07:00
Simon Michael
bc8e4ef91e web: upgrade bootstrap to 3.1.1
This nicely fixes the too-narrow page layout.
2014-05-23 09:32:29 -07:00
Simon Michael
97ab3db8f0 remove Setup.hs files again, fixing a yesod devel warning
These were removed and re-added in 2011 because "hackage needed them".
Let's try again.
2014-05-23 09:04:00 -07:00
Simon Michael
702f900ec0 web: fix warnings 2014-05-23 09:02:20 -07:00
Simon Michael
3c8786df1f web: tweak tooltips, remove unused code 2014-05-23 09:01:25 -07:00
Simon Michael
3ee0b5f29b web: fix account "only" hover links 2014-05-23 08:39:22 -07:00
Simon Michael
7778a0b821 web: reorganise sidebar links 2014-05-22 20:57:22 -07:00
Simon Michael
3f3a526e8a web: move sidebar links out of balanceReportAsHtml 2014-05-22 20:36:49 -07:00