Simon Michael
2ed17f29e6
web: fix ghc/cabal warnings
2012-11-16 17:08:27 +00:00
Simon Michael
a39b8f652a
web: add missing files to cabal
2012-11-16 17:08:54 +00:00
Simon Michael
42185474c0
web: tweak "embedded files" message
2012-11-17 01:23:05 +00:00
Simon Michael
695ff9a49e
91: don't require a ./config/ directory at hledger-web startup
...
As before, hledger-web writes a yesod session file in the current
directory at startup. It's now called ./.hledger-web_client_session_key.aes
2012-11-17 01:25:33 +00:00
Simon Michael
cfbd8bb956
web: update for yesod 1.1.3
...
Build with latest yesod. Also reorganise to conform more closely with
yesod's standard scaffold layout to reduce upgrade effort.
2012-11-15 17:48:48 +00:00
Simon Michael
f441bbd946
web: add missing CPP pragma
2012-10-13 14:57:42 +00:00
Simon Michael
00f22819ae
balance report speedup
...
This refactoring fixes an O(n^2) slowdown in the balance command with
large numbers of accounts. It's now speedy, and the implementation is
clearer. To facilitate this, the Account type now represents a tree of
accounts which can easily be traversed up or down (and/or flattened
into a list).
Benchmark on a 2010 macbook:
+-------------------------------------------++--------------+------------+--------+
| || before: | after: | |
| || hledger-0.18 | hledgeropt | ledger |
+===========================================++==============+============+========+
| -f data/100x100x10.journal balance || 0.21 | 0.07 | 0.09 |
| -f data/1000x1000x10.journal balance || 10.13 | 0.47 | 0.62 |
| -f data/1000x10000x10.journal balance || 40.67 | 0.67 | 1.01 |
| -f data/10000x1000x10.journal balance || 15.01 | 3.22 | 2.36 |
| -f data/10000x1000x10.journal balance aa || 4.77 | 4.40 | 2.33 |
+-------------------------------------------++--------------+------------+--------+
2012-10-21 17:18:18 +00:00
Simon Michael
51a9f2a948
bump version
2012-10-21 20:20:35 +00:00
Simon Michael
f03b020e2f
set version with CPP instead of cabal-file-th; make building more robust
...
hledger and hledger-web were reading their version number (and program
name) from their cabal files at compile time using cabal-file-th,
which allowed the version number be maintained in one place (per
package).
This meant you had to be in same directory as the cabal file when
building, which made life more complicated, eg emacs compilation mode
could not jump to errors. Also, it slowed down building slightly, and
is a factor in hledger Debian packages being unavailable on a number
of platforms (we also use TH for report templates).
Now, the build version is set with a CPP VERSION flag, which seems
simpler overall. For cabal builds, this needs to be configured
manually in a few more places in each cabal file. For makefile builds,
it is set it to the name of the most recent darcs tag (which should be
more useful than the old behaviour). If not set, it defaults to the
blank string, useful eg for haddock. And, all makefile builds now run
from the top directory.
2012-10-13 19:21:17 +00:00
Simon Michael
7fec954cbf
support latest cmdargs, haskeline, split
2012-10-08 16:50:35 +00:00
Simon Michael
155cb0eafe
web: fix compilation error with -fblaze_html_0_5 flag
2012-07-08 00:18:39 +00:00
Simon Michael
f8a9cce43d
bump base lower bound to 4.3 to enforce GHC 7 requirement
2012-07-08 00:22:20 +00:00
Simon Michael
63973c3728
bump version to 0.18.2
2012-07-08 00:24:40 +00:00
Simon Michael
5e944374de
web: don't auto-create a missing journal file at startup
2012-06-29 22:48:41 +00:00
Simon Michael
461f370db0
web: fix a cabal warning
2012-06-29 22:54:54 +00:00
Simon Michael
480e9a4080
web: cabal flag "blaze_html_0_5", off by default, uses the newer blaze-html 0.5
2012-06-29 23:07:19 +00:00
Simon Michael
6db9db0be1
bump version
2012-06-29 23:09:19 +00:00
Simon Michael
4b11890e02
web: fix a build error
2012-03-07 16:42:35 +00:00
Simon Michael
e8114f3ffb
web: add missing language flag to hledger-web.hs
2012-03-30 19:24:43 +00:00
Simon Michael
28d86aca53
web: fix excess angle bracket in add form
2012-04-01 21:07:01 +00:00
Simon Michael
25b514b721
web: fix js error breaking second use of add form ( #72 )
2012-04-01 21:08:30 +00:00
Simon Michael
bb131f1b8c
web: add closing angle brackets which yesod 1.0 requires
2012-04-01 20:30:44 +00:00
Simon Michael
296a4d1bb2
web: better hamlet override
2012-04-03 17:53:12 +00:00
Simon Michael
64b6316785
web: revert unintended hunk in Settings.hs
2012-04-03 17:43:49 +00:00
Simon Michael
acc5139c54
tools: makefile updates
2012-04-03 17:12:47 +00:00
Simon Michael
f298aac874
web: fix account balance rendering
2012-05-29 03:18:24 +00:00
Simon Michael
9184036fe8
require blaze-html < 0.5 to simplify that dep
2012-05-29 14:59:43 +00:00
Simon Michael
f35b961c86
web: update for yesod 1.0
2012-05-29 02:53:33 +00:00
Simon Michael
8f94ae3de4
web: yesod 0.10 now requires shakespeare-text 0.11, relax the upper bound on that
2012-03-28 15:43:32 +00:00
Simon Michael
98274b481d
more build warnings
2012-05-06 20:44:23 +00:00
Simon Michael
88f69e12e2
fix Dates exports for hledger-web
2012-04-16 17:09:27 +00:00
Simon Michael
d0bf2667c2
bump version
2012-05-28 21:08:05 +00:00
Simon Michael
1f1a1eb16f
bump version
2012-03-30 00:27:23 +00:00
Simon Michael
93dd7bd064
web: simplify ifdef
2012-05-29 16:43:13 +00:00
Simon Michael
b4514cc37d
web: don't munge static file names in dev mode
2012-05-29 03:09:43 +00:00
Simon Michael
f6f615196f
web: define our own hamlet so it can be tweaked for debugging
2012-04-01 20:49:36 +00:00
Simon Michael
cfa59cc4f8
web: Hledger.Web api cleanup, haddocks
2012-04-01 20:29:10 +00:00
Simon Michael
2912a11929
web: officially drop GHC 6.12 support, fix build warnings with 7.0, 7.2, 7.4
2012-03-29 23:24:48 +00:00
Simon Michael
7f3b990394
docs: fix api docs
2012-03-07 16:05:04 +00:00
Simon Michael
5b749ab8a2
web: work around static file problem by skipping etag parameter
2012-05-29 16:45:24 +00:00
Simon Michael
88212f26e8
simplify journal parser names
2012-05-09 15:34:05 +00:00
Simon Michael
c23d1793ae
docs: clarify supported GHC versions
2012-03-29 22:09:54 +00:00
Simon Michael
e1b1b8bce8
rename Matcher to Query, simplify constructors
2012-05-16 07:12:49 +00:00
Simon Michael
0c73d91f94
web: fix static file embedding in non-dev builds
2012-03-09 18:52:31 +00:00
Simon Michael
a27eb7c29f
more matcher -> query renaming
2012-05-16 07:37:24 +00:00
Simon Michael
c27707f578
web: bump version, upgrade to yesod 0.10
2012-03-05 07:52:36 +00:00
Simon Michael
8492f6cae4
fix unicode handling on GHC >= 7.2, unify utf8 IO compatibility layer
...
tests pass again from GHC 6.12.3 to 7.4.1
2012-03-29 19:06:31 +00:00
Simon Michael
51408e52ed
web: make "yesod devel" work
2012-03-30 19:31:53 +00:00
Simon Michael
6eb7ad28e1
refactor/beef up readJournal/readJournalFile
2012-03-23 16:21:41 +00:00
Simon Michael
1165a9e634
set more upper bounds to fix cabal install issues with latest web packages
2012-03-03 19:01:32 +00:00
Simon Michael
f1da4912e8
web: we can use the main aeson package again
2012-01-02 13:17:44 +00:00
Simon Michael
48460b0130
fix missing chart regression ( #72 )
2012-01-03 13:00:28 +00:00
Simon Michael
03359b48d3
web: prevent flot js error which broke add form fields after adding a transaction ( #72 )
2012-01-03 12:14:22 +00:00
Simon Michael
7f60e3504c
web: fix $ quoting
2012-01-03 10:46:39 +00:00
Simon Michael
fd22dde57b
web: needed to escape literal dollar signs in hamlet templates
2012-01-02 13:19:12 +00:00
Simon Michael
015dacb0d7
web: add form should reject blank account names ( #81 )
2012-01-04 11:35:39 +00:00
Simon Michael
26ad00a659
support and require latest cmdargs
2012-01-05 18:25:15 +00:00
Simon Michael
3e3af47b96
bump cmdargs upper bound in other places
2012-01-03 11:00:35 +00:00
Simon Michael
0bd7fffaf7
web: dodge a yesod-core regression breaking add form redirect ( #53 )
2012-01-12 15:44:32 +00:00
Simon Michael
1b834afb20
web: avoid problematic redirect after submitting the add form
2012-01-03 12:43:30 +00:00
Simon Michael
0670fda22e
web: allow template-haskell 2.6.0.0
2012-01-29 21:32:07 +00:00
Simon Michael
c686645fab
refactor: update version number handling
2012-01-31 06:01:31 +00:00
Simon Michael
6b784c0e65
bump version
2012-02-02 05:37:02 +00:00
Simon Michael
9329873cef
bump version to "0.17 alpha"
2012-01-31 05:18:18 +00:00
Simon Michael
62454b45ff
update tested-with fields
2012-01-30 04:21:03 +00:00
Simon Michael
9040821e8d
web: fix ghc 6.12 incompatibility in Settings.hs
2011-10-26 17:30:17 +00:00
Simon Michael
a954ecd9d6
bump version, relnotes for hledger-web bugfix
2011-10-26 17:31:34 +00:00
Simon Michael
db7f4d1b3d
use cabal-file-th to get executable name and version from cabal files
2011-10-19 19:53:42 +00:00
Simon Michael
959d8a4591
web: clean up name clash with Yesod.Core
2011-10-19 19:57:12 +00:00
Simon Michael
0a5e85f5ef
web: bump version & relnotes for a bugfix release
2011-10-24 17:50:32 +00:00
Simon Michael
ebf215d971
web: another fix for cabal builds, disable favicon.ico since it's not easily embeddable
2011-10-05 00:48:53 +00:00
Simon Michael
9347f3169d
bump hledger-web version
2011-10-05 00:49:06 +00:00
Simon Michael
428ce79c82
web: more cabal extra-source-files fixes
2011-10-05 00:18:30 +00:00
Simon Michael
bcc616823d
bump just hledger-web version
2011-10-05 00:28:18 +00:00
Simon Michael
5c07a465da
web: simplify static path definitions
2011-10-04 22:44:39 +00:00
Simon Michael
c3b5bcb37b
web: declare static files as extra-source-files for cabal ( #63 )
2011-10-04 22:45:45 +00:00
Simon Michael
e3e9c6b40a
docs: note hledger-web build flags
2011-10-04 23:48:06 +00:00
Simon Michael
329cafae93
web: fewer build warnings in production mode, add a threaded flag for debian ( #68 )
2011-10-04 23:02:57 +00:00
Simon Michael
4fb325b92a
bump version
2011-10-04 23:53:50 +00:00
Simon Michael
85cb11efbf
web: don't bother running cli unit tests at startup
2011-09-12 23:38:21 +00:00
Simon Michael
7f91a97d19
fix yesod haddock breakage
2011-09-14 02:42:18 +00:00
Simon Michael
187a7a1cc7
web: obey at least some command-line options, like --cost
...
Report filtering options like --period, and filter pattern arguments, are still ignored.
2011-09-14 19:53:05 +00:00
Simon Michael
4ca655b6a0
web: follow yesod file naming more closely
2011-09-12 23:37:55 +00:00
Simon Michael
4c52dd5b76
web: production build now has all web content embedded, dev build uses ./static ( #63 )
2011-09-12 23:30:29 +00:00
Simon Michael
c7c67efc1c
web: adjust --help to indicate command-line arguments are not expected
...
Arguments are still accepted and ignored, since I can't see how to disallow them with cmdargs
2011-09-14 22:53:29 +00:00
Simon Michael
f6e15a2a80
fix warning
2011-09-19 03:25:19 +00:00
Simon Michael
fda4085e80
clarification
2011-09-20 15:23:08 +00:00
Simon Michael
15c39ac6c9
web: prevent an infinite redirect when custom base url has a trailing slash
2011-09-20 15:23:55 +00:00
Simon Michael
85b2307e78
web: modify the default base url when a custom port is specified
2011-09-19 03:25:12 +00:00
Simon Michael
2b5bd268b9
web: hide old title and search form when adding/editing
2011-09-21 22:42:06 +00:00
Simon Michael
0311595d3b
web: editform title
2011-09-21 22:42:15 +00:00
Simon Michael
6019c932fb
web: ensure we get the fixed aeson-native to prevent NFData build error ( #65 )
2011-09-22 13:37:58 +00:00
Simon Michael
7bc67a7f00
web: update for yesod 0.9
2011-09-12 18:41:43 +00:00
Simon Michael
d4a3a8c3a0
web: do auto-create the journal for the web command
...
At add time would be better, but for at startup is easier
2011-09-23 14:07:50 +00:00
Simon Michael
6f0f1acf7e
fix hledger-web build error
2011-09-27 16:29:43 +00:00
Simon Michael
9b2a5f56e1
only the add and web commands auto-create the journal file
2011-09-23 03:53:14 +00:00
Simon Michael
453750be43
web: the cabal build enables production mode (with embeded files) by default
2011-09-14 02:51:31 +00:00
Simon Michael
b0b1f7d733
bump version
2011-10-01 17:17:02 +00:00
Simon Michael
80afd4ae7a
web: bump hledger-web version
2011-09-12 23:10:01 +00:00
Simon Michael
27e4fec943
web: fix some invalid html
2011-09-10 19:52:35 +00:00