Simon Michael
f3dd5eb830
fix options breakage with GHC < 7.10
2015-08-28 11:17:49 -07:00
Simon Michael
2af8d7598e
cli, web: fix options breakage
2015-08-28 10:49:43 -07:00
Simon Michael
ebba1b09f2
web: fix more ghc 7.10 import warnings ( #239 )
2015-04-07 18:49:33 -07:00
Simon Michael
b0d71e3ccc
web: declare a bunch of language pragmas
...
Makes the code more declarative, and makes building without cabal easier.
2015-04-07 18:35:41 -07:00
gwern
d1618aaca8
strip trailing whitespace from all Haskell files
2014-10-14 18:48:24 -07:00
Simon Michael
e6a1339370
cli: options help polish
2014-05-01 07:22:44 -07:00
Simon Michael
3fb5e25fd4
web: rename --static-root to --file-url
2014-04-30 08:48:23 -07:00
Xinruo Sun
0275485bf9
web: add a --static-root option to customize static files root
2013-12-15 12:20:07 +08:00
Simon Michael
a66a715eeb
command line options API updates, possibly fixing hledger-web build
2013-09-22 22:31:06 -07:00
Simon Michael
080eb866ec
web: clean up language extensions a bit, make autoweb works again
2013-06-04 18:23:55 -07:00
Simon Michael
c9b6dd8819
web: --server flag re-enables long-running, request-logging mode; output cleanups
2013-05-01 07:23:59 -07: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
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
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
c27707f578
web: bump version, upgrade to yesod 0.10
2012-03-05 07:52:36 +00:00
Simon Michael
c686645fab
refactor: update version number handling
2012-01-31 06:01:31 +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
9347f3169d
bump hledger-web version
2011-10-05 00:49:06 +00:00
Simon Michael
bcc616823d
bump just hledger-web version
2011-10-05 00:28:18 +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
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
464d8d4bcb
hledger now detects and runs hledger-* add-ons found in path; many options cleanups
2011-08-22 14:55:39 +00:00
Simon Michael
059825a9b2
optionsgeddon.. port to cmdargs and a fully modal cli
2011-08-15 22:50:09 +00:00