Commit Graph

186 Commits

Author SHA1 Message Date
Simon Michael
af50767743 appveyor: try workaround for pretty-show failure
[ci skip]
2018-04-26 12:11:03 -07:00
Simon Michael
8650b7042d stack: bump default snapshot to latest nightly/ghc-8.4.2 2018-04-25 08:52:24 -07:00
Simon Michael
7e8f9cde79 stack: bump to latest nightly 2018-04-08 17:54:11 -07:00
Simon Michael
5468a26345 ui: can build with stackage ghc 8.4 nightlies again 2018-04-08 17:53:23 -07:00
Simon Michael
28a8b55f4e move non-portable file warning to package 2018-03-26 01:04:58 +01:00
Simon Michael
ee3a06e569 stack: updates, fix tests, silence non-portable file warning 2018-03-25 23:20:58 +01:00
Simon Michael
1d0f94145d stack: hledger-ui won't build on linux, disable for now 2018-03-25 02:20:53 +01:00
Simon Michael
3b4313c883 stack: add hinotify for hledger-ui on linux 2018-03-25 02:04:44 +01:00
Simon Michael
689434b1f6 stack: re-enable hledger-api 2018-03-24 22:53:51 +00:00
Simon Michael
47615c8af8 stack: use newer brick just in case 2018-03-24 17:58:49 +00:00
Simon Michael
e6583a2925 stack: re-enable hledger-web 2018-03-24 17:23:15 +00:00
Simon Michael
02055fcad5 stack: make latest nightly/ghc 8.4 the default 2018-03-24 16:06:20 +00:00
Simon Michael
60ea1151ad rename stack.yaml files 2018-03-24 15:47:06 +00:00
Simon Michael
552fd50af9 stack: bump default resolver to latest nightly again (#717) 2018-03-12 03:41:26 +00:00
Simon Michael
6aa35b5cb8 lib: move easytest tests to lib, depend on released version 2018-03-05 17:27:13 -08:00
Eli Flanagan
9f2e75d166 ensure stack's nix config works on nixos 2018-03-05 08:15:31 -08:00
Simon Michael
2f87657185 tools: travis: try to fix github dep on travis 2018-02-15 17:39:42 -08:00
Simon Michael
9a5d9c6235 tools: add easytest (github) as an extra dep, for experiments 2018-02-15 16:30:50 -08:00
Simon Michael
32693de44a stack: bump to lts 10.3, extra-deps tweaking ergonomics
[ci skip]
2018-01-14 17:06:07 -08:00
Simon Michael
96bb029410 stack: comment 2017-12-22 05:33:45 -08:00
Alvaro Fernando García
15e100c108 stack: bump default resolver to lts-10.0 2017-12-22 05:31:23 -08:00
Simon Michael
a0ff0ce84b stack: bump default resolver to nightly-2017-12-14 2017-12-14 18:15:12 -08:00
Eli Flanagan
0ad8c45e2d disable pure to preserve $LANG 2017-12-14 16:42:29 -08:00
Eli Flanagan
6bd86f999b use nix integration option 2017-12-14 16:42:29 -08:00
Simon Michael
99dfcd9e90 stack, hakyll-std: use latest snapshots 2017-12-06 20:57:14 -08:00
Simon Michael
56529daadc stack: test with latest nightly resolver 2017-11-10 19:23:09 -08:00
Simon Michael
025a2375bd stack: more thorough make test-stackage (test and bench) 2017-09-08 10:26:40 -07:00
Simon Michael
1f2b00ee3b stack: update stackage configs for 3 ghcs, switch to 8.2.1 as default
Building with same GHC as stackage nightly is a good idea for noticing
problems keeping us out of stackage. make test-stackage is a start at
checking for stackage problems with the last three GHC versions.
2017-09-08 07:57:07 -07:00
Simon Michael
00f61b5ec7 stack: remove test deps 2017-08-24 16:12:29 -07:00
Simon Michael
6c8a445271 stack: bump default resolver to lts-9.0 2017-08-24 15:27:36 -07:00
Simon Michael
d7d5f8a064 add support for megaparsec 6 (fixes #594)
Older megaparsec is still supported.
Also cleans up our custom parser types,
and some text (un)packing is done in different places
(possible performance impact).
2017-07-27 19:20:46 -07:00
Simon Michael
cb693cd7ca stack: bump recommended resolver to lts-8.23
[ci skip]
2017-07-21 09:35:34 +01:00
Simon Michael
45e9c9d632 stack, site: update stack yaml files, sync with download page
[ci skip]
2017-07-16 07:24:13 +01:00
Simon Michael
a05a800668 tools: stack: no need to force brick 0.19 (#578) 2017-06-30 22:48:04 +01:00
Felix Yan
ffe8b47529 Update brick to 0.19 2017-06-30 22:45:34 +01:00
Simon Michael
7bc5ef3df0 stack: bump default snapshot to lts-8.15 2017-05-22 15:48:15 -07:00
Simon Michael
44fc889ef7 stack: bump to lts-8.11 2017-04-25 09:36:24 -07:00
Simon Michael
8815266b5f stack: bump snapshot to lts-8.6 2017-03-29 21:06:07 -07:00
Simon Michael
b3c8bb8543 update stack.yaml, lts-8.* is needed for osx sierra 2017-02-22 17:21:42 +00:00
Simon Michael
2e2a34261f stack: bump to latest lts & extra deps 2017-02-04 16:32:03 -08:00
Joshua Chia
d3883bad1f Updated hledger-ui to use brick-0.16 (#479)
brick-0.16 uses Brick.BChan.BChan instead of Control.Concurrent.Chan.Chan.
2017-01-14 10:41:46 -08:00
Simon Michael
8b354043c1 stack: bump brick to 0.15.2 to allow hledger-iadd install in hledger dir 2017-01-08 11:44:53 -08:00
Simon Michael
ff6ca9cc43 stack: bump recommended snapshots to latest lts versions 2016-12-29 11:33:34 -08:00
Simon Michael
91c524b600 ui: allow brick 0.15, vty 5.14 2016-12-07 14:17:23 -08:00
Simon Michael
283cda9303 ui: allow vty 5.13 (and use it in stack.yaml) 2016-11-22 09:29:54 -08:00
Simon Michael
8ca03f0a49 fix ghc7 stack config, update ghc8 stack config 2016-11-02 07:06:34 -07:00
Simon Michael
c6e2784eeb ui: use brick 0.12, bump version to 1.0.3 2016-10-31 08:06:29 -07:00
Simon Michael
f0f4013b7a ui: use latest brick, 0.11 2016-10-27 14:15:56 -07:00
Simon Michael
ddc6bdbe22 update stack.yamls to latest lts versions 2016-10-27 14:08:31 -07:00
Simon Michael
c8982355b0 ui: allow latest text-zipper, vty 2016-10-26 12:57:51 -07:00
Simon Michael
b322ba995c don't symlink stack.yaml, I think windows doesn't like it 2016-10-21 17:58:17 -07:00
Simon Michael
5aa4c91332 stack/cabal cleanups; drop GHC 7.6, 7.8 support
A (disabled) stack build plan for GHC 7.8 is included; supporting it
would need small code changes and a maintainer.
2016-10-21 14:47:22 -07:00
Simon Michael
146ba133c6 update recommended snapshots, make GHC8/lts-7 the default 2016-10-20 16:56:29 -07:00
Simon Michael
f23438ce80 stack: use latest snapshots 2016-09-21 08:51:19 -07:00
Simon Michael
a263d50275 stack: update suggested developer snapshots 2016-08-09 18:39:55 -07:00
Moritz Kiefer
4141067428 Replace Parsec with Megaparsec (see #289) (#366)
* Replace Parsec with Megaparsec (see #289)

This builds upon PR #289 by @rasendubi

* Revert renaming of parseWithState to parseWithCtx

* Fix doctests

* Update for Megaparsec 5

* Specialize parser to improve performance

* Pretty print errors

* Swap StateT and ParsecT

This is necessary to get the correct backtracking behavior, i.e. discard
state changes if the parsing fails.
2016-07-29 08:57:10 -07:00
Simon Michael
9b0cadc179 ui: support/require brick 0.7+ #379 2016-07-24 18:06:49 -07:00
Simon Michael
5355447e04 stack: update ghc 7 & 8 stack configs 2016-07-22 18:08:34 -07:00
Simon Michael
abf1bcbf36 bump default stackage snapshot to lts-6.0 2016-05-28 12:13:21 -07:00
Simon Michael
4063df0530 stack: add some required newer deps from hackage 2016-05-11 07:13:21 -07:00
Simon Michael
a569bf73c6 web: update wai-handler-launch for better startup (fixes #226) 2016-05-11 06:45:01 -07:00
Simon Michael
29d4f1c03f ui: build faster, latest brick/vty uses microlens 2016-05-11 06:32:32 -07:00
Simon Michael
4d36b04856 stack: bump snapshot to lts-5.16 2016-05-11 06:30:57 -07:00
Simon Michael
2c21ca9bf4 web: update wai-launch-handler location 2016-05-04 11:43:02 -07:00
Simon Michael
1de722a34a update wai-handler-launch git reference for stack 2016-04-29 06:58:49 -07:00
Simon Michael
df1040014e web: exit if an instance is already running (#226)
Also
- pause for 0.1s before opening the browser, to ensure the app is ready
- don't open a browser if the app fails to start
- terminate the server thread more carefully on exit, may resolve some
  lingering background thread issues eg on windows
2016-04-22 11:21:33 -07:00
Simon Michael
a3e975bdb8 doc: use new file-embed to fix ghci cwd dependence
See https://github.com/snoyberg/file-embed/issues/18
2016-04-21 08:45:22 -07:00
Simon Michael
6ffc2b2392 remove confusing comment from stack.yaml #335 2016-04-19 10:31:54 -07:00
Simon Michael
9439d1a611 require stackage nightly, for newer pandoc/swagger
Move to a newer stackage snapshot. This helps ensure a new-enough pandoc
will more be available for doc building without needing extra
compilation. Also we get to use the latest swagger and servant-swagger
for hledger-api, but we have to go to stackage nightly. With luck there
will be a lts 6 before next hledger release.
2016-04-05 16:17:08 -07:00
Simon Michael
96977afef5 bump recommended stack snapshot to lts-4.2 2016-01-21 14:54:12 -08:00
Simon Michael
687d6ec366 api: add servant-swagger extra dep for stack 2016-01-21 14:53:47 -08:00
Simon Michael
921cbe5a9e bump suggested stack snapshot to lts-4.1 2016-01-10 08:40:33 -08:00
Simon Michael
68f56764ab api: begin a web API server with examples (#316) 2016-01-09 07:48:24 -08:00
Simon Michael
6c1f847c90 stack: some versions don't like empty flags (#300)
Apparently. Also, reorder things and update doc link.
2015-11-16 15:14:49 -08:00
Simon Michael
fd9f87d08f recommended the current nightly stackage snapshot 2015-11-05 20:26:14 -08:00
Simon Michael
bb13ca4c56 don't build with rtsopts by default 2015-10-30 13:22:30 -07:00
Simon Michael
1777c0a214 require nightly stackage snapshot for hledger-ui
vty and brick are not yet in the LTS snapshots.
We don't want to list them explicitly as extra-deps since that
can't be conditionalised for windows, which doesn't support them.
So, require a nightly snapshot which does include them.
A downside of this is that most people won't have this
particular snapshot installed. But with luck, stack will
reuse bits from their older snapshots and there won't be too much building.
2015-10-26 06:49:24 -07:00
Simon Michael
f8f2d457b9 lib: memoize toRegex[CI] (#244)
The regex helpers were converting strings to regex-tdfa regular
expressions on the fly every time, but this appears to be quite
expensive. The simplest memoisation lib seems to solve it nicely.
2015-09-26 15:39:21 -10:00
Simon Michael
b0dc4d9f6f ui: depend on brick 0.2 2015-08-24 16:24:12 -07:00
Simon Michael
49e1840a0f ui: rewrite the ui using brick
hledger-ui (formerly hledger-vty) is now built on brick, a new
declarative UI layer built on vty. This brings much new power, and
should make the UI much easier to grow and maintain.

At this point, functionality and performance are similar to the old
version. There's no journal entries screen, but entering the postings
screen jumps to the latest posting, and layout is better (multiple
commodities are rendered on one line).

Requires unreleased brick from github (HEAD or some branch) for now.
2015-08-24 16:24:11 -07:00
Simon Michael
0df43a15a1 tools: stack yaml cleanup 2015-08-23 09:36:42 -07:00
Simon Michael
207ae772d4 ui: revive the curses UI, now named hledger-ui 2015-08-13 11:22:40 -07:00
Simon Michael
9536db384d bump stack resolver to lts-3.0 2015-08-13 08:16:54 -07:00
Simon Michael
5c421a3a70 bump suggested stack snapshot to nightly-2015-07-01 2015-07-12 17:57:40 -07:00
Simon Michael
01db48fcfc cli: a more robust and featureful bench test
The bench script invoked by cabal bench or stack bench now links the
benchmarked code directly, avoiding any dependence on the shell and
$PATH. Also, it reports the journal parse time and the various reports
on the parsed data separately, and runs quicker.

You can get more accurate benchmark times by running with --criterion.
This will usually give much the same numbers and takes much longer.

Benchmarking via simplebench is still available, by running with
--simplebench. In this mode it benchmarks whatever commands are
configured in bench/default.bench. A disadvantage is that it uses the
first "hledger" executable in $PATH, so check which one it reports.
2015-06-25 16:08:27 -07:00
Simon Michael
429d720e8a add a stack.yaml, using today's stackage nightly 2015-06-17 13:57:15 -07:00