Commit Graph

6244 Commits

Author SHA1 Message Date
Alex Chen
12e8d0e282 lib: change some parsers to use takeWhileP 2018-05-22 12:16:46 -07:00
Alex Chen
558c11596f lib: refactor the account name parser 2018-05-22 12:16:46 -07:00
Alex Chen
b245ec7b3d lib: remove the megaparsec compatability module 2018-05-22 12:16:46 -07:00
Alex Chen
c4ba7542d7 lib: use megaparsec 6 for all supported ghc versions 2018-05-22 12:16:46 -07:00
Everett Hildenbrandt
615ca04813 Shake.hs: use system-wide install of pandoc instead of stack exec pandoc 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
35a1f96501 stack-ghc8.2.yaml: remove now unneeded extra-deps 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
16200908e8 Shake, tools/pandoc-site.{hs => lua}: switch to building site with Lua filter 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
f3d81631e9 tools/pandoc-site: avoid calling HTML writer directly 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
1c561c2270 tools/pandoc-site: switch to using Pandoc builtin function hierarchicalize 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
78e10f7663 tools/pandoc-site: remove unused datastructure TOCAlignment and function ignoreTOC 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
946fa1d498 tools/pandoc-{site,drop-toc}, Shake, site/, doc/: switch from bulletlist to metainline toc marker
Files `site/doc/{1.0,1.1}/hledger-ui.md` had to be treated specially because
thay had some other elements inside the same `BulletList` that the `toc` lived
inside. Because only the first element of the `BulletList` is compared, these
extra HTML elements were either dropped or replaced with a TOC at compile time.
By switching to the meta-inline `\$toc\$`, they started to persist into the
resulting HTML. The fix was to drop them from the source markdown.
2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
ae987b236b tools/pandoc-site: pass in generated toc from top-level filter 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
e2a322283a tools/pandoc-site: remove attribution 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
045df0e528 .ci: track generated md files as well 2018-05-21 08:35:49 -07:00
Everett Hildenbrandt
e8ac237752 Shake.hs, stack-ghc8.2.yaml: missing extra-dep for pandoc 2018-05-21 08:35:49 -07:00
Alex Chen
676ea912b3 lib: fix issue where spaces were allowed as decimal points
- Fixes #749
- Also enabling the tests prepared for #749
2018-05-20 20:17:57 -07:00
awjchen
46aae19a54
lib: fix parsing of amounts with a whitespace digits separator 2018-05-20 16:02:59 -06:00
Simon Michael
93a2060659 travis: comment, webhook test 2018-05-18 13:36:11 -07:00
Simon Michael
ca112cb448 stack: comment out pandoc & co for now to fix build failure 2018-05-17 20:49:52 -07:00
Simon Michael
3886ef463a stack: bump to latest lts-11 2018-05-17 20:44:51 -07:00
Simon Michael
581d02162c resolve all current build warnings with the supported GHC versions
If I'm lucky.
2018-05-17 20:43:55 -07:00
Simon Michael
55790008d7 make buildtest: build the test and benchmark suites too
[ci skip]
2018-05-17 20:42:14 -07:00
Simon Michael
fc5d18a63a make: buildtest, buildtest-stackX.yaml, buildtest-all, watch-X
Useful new rules for 1. thorough build checking with all supported ghc
versions, and 2. re-running any make rule when a committed file
changes.

[ci skip]
2018-05-17 19:39:45 -07:00
Simon Michael
9cb07e148c make: move some things around
[ci skip]
2018-05-17 19:39:19 -07:00
Simon Michael
7442b2887c make: fixes 2018-05-17 19:10:12 -07:00
Simon Michael
4474e4bd43 bin: drop hledger-autosync symlink, it breaks make watch-* 2018-05-17 19:00:09 -07:00
Alex Chen
67ed2d6cbf lib: superficial changes to comment parsers 2018-05-17 18:15:06 -07:00
Alex Chen
188583e232 lib: cleanup: remove redundant comment parsing alternatives 2018-05-17 18:15:06 -07:00
Alex Chen
892a1c6434 lib: refactor: make the bracketed date tags parser a SimpleTextParser 2018-05-17 18:15:06 -07:00
Alex Chen
0cff1634be lib: refactor: make the bracketed datetags parser a SimpleTextParser in all but type 2018-05-17 18:15:06 -07:00
Alex Chen
b3a91a49d8 lib: refactor: factor out a TextParser from datep 2018-05-17 18:15:06 -07:00
Alex Chen
09fd8132b7 lib: refactor: weaken types of comment parsers 2018-05-17 18:15:06 -07:00
Simon Michael
d1b9d9dfe6 make: TESTING cleanup, more thorough and fine-grained test rules
new:
warningstest
hunittest
doctest
easytest
watch-RULE

renamed:
allsnapshotstest -> allghcstest

[ci skip]
2018-05-17 18:12:48 -07:00
Simon Michael
d897bacdfe journal: more failing tests for spaced amounts (#749)
[ci skip]
2018-05-17 16:17:06 -07:00
Simon Michael
1c6702d598 budget: note some todos
[ci skip]
2018-05-17 08:12:14 -07:00
Simon Michael
5e725ff36e journal: add tests for #749, commented 2018-05-17 07:51:47 -07:00
Simon Michael
5516622472 journal: consolidate amount/commodity func tests 2018-05-17 06:57:27 -07:00
Alex Chen
31b72f0415 lib: replace notChar for backwards compatibility with megaparsec 5 2018-05-16 22:35:22 -07:00
Simon Michael
728f185508 stack: use latest easytest, fix ghc 7.10 build
[ci skip]
2018-05-16 18:49:10 -07:00
Simon Michael
d6b546db80 site: download: spin
[ci skip]
2018-05-16 18:43:46 -07:00
Simon Michael
f5e28ee8ce site: deploy: be sure main repo is pulled
[ci skip]
2018-05-16 18:33:23 -07:00
Simon Michael
4e70be139f site: download: link windows issue (#774)
[ci skip]
2018-05-16 18:30:01 -07:00
Simon Michael
cffaddb607 doc: hcar: link to old entry
[ci skip]
2018-05-16 17:58:17 -07:00
Simon Michael
e7b121bf80 doc: hcar: draft november entry
[ci skip]
2018-05-16 17:58:17 -07:00
Simon Michael
a1cb6590dd doc: hcar: merge final changes to recent entry
[ci skip]
2018-05-16 17:58:17 -07:00
Simon Michael
d3efac66e0 site: home: update from wiki
[ci skip]
2018-05-16 17:34:54 -07:00
Simon Michael
84bde5095c travis: hledger-ui can be built again (#719) 2018-05-16 17:33:44 -07:00
Simon Michael
3bf0f19bb5 budget: another func test against my confusion 2018-05-16 17:23:15 -07:00
Simon Michael
a23b0336b2 site: download: note windows XP issue 2018-05-16 13:29:13 -07:00
Simon Michael
999080af89 fix budget func test 2018-05-16 12:55:06 -07:00