Commit Graph

6313 Commits

Author SHA1 Message Date
Simon Michael
ee68fed951 tools: make: rename rules to ghci[d]-doctest
[ci skip]
2018-06-07 18:20:14 -07:00
Simon Michael
305f208862 stack: remove obsolete extra deps
[ci skip]
2018-06-07 13:19:08 -07:00
Simon Michael
5af502b2bb site: download: C deps tweak
[ci skip]
2018-06-07 13:19:08 -07:00
Simon Michael
79d3da0b2d
Merge pull request #803 from trevorriles/doctests-fast-flag
Add fast flag to doctests.
2018-06-07 11:28:33 -07:00
trevorriles
9b1343d0b9 Add fast flag to doctests.
Fixes #802
2018-06-07 10:41:09 -05:00
Simon Michael
8226335c4e
Merge pull request #789 from ocdtrekkie/upstream-sandstorm
Upstream Sandstorm build files
2018-06-06 07:57:48 -07:00
Simon Michael
e86b15f2b5
Merge branch 'master' into upstream-sandstorm 2018-06-05 11:03:40 -07:00
Simon Michael
236101e31a ui: support/require fsnotify 0.3.0.1+
The api has changed, it supports directory events, and might be more robust.
2018-06-05 06:41:13 -07:00
Simon Michael
bcbf0489c7 tools: make buildplantest* to check install plans without building
[ci skip]
2018-06-05 06:21:52 -07:00
Jacob Weisz
c7cb8aa253 Update Sandstorm metadata 2018-06-05 01:37:29 -05:00
Jacob Weisz
0a4fbef175 Update Sandstorm build files 2018-06-05 00:23:59 -05:00
Simon Michael
061aad0431 remove some CPP that's obsolete since we require base 4.8+ 2018-06-04 17:33:21 -07:00
Simon Michael
7ebecb1ab8 use newer hashtables to fix an instance warning with doctests/ghc 7 (#794) 2018-06-04 17:33:17 -07:00
Simon Michael
ec39c87ca8 disambiguate the base-compat imports in hledger package too (#794) 2018-06-04 17:32:45 -07:00
Simon Michael
0ce9c5728a switch to base-compat-batteries to fix ghc 7.10 support (#794)
base-compat-batteries provides the same API across more ghc versions
than base-compat does, at the cost of more dependencies. Eg it exports
Prelude.Compat ((<>)) with ghc 7.10/base 4.8, which we expect.
My belief is that several of our deps already require it so the added
cost is not too great. We should probably go back to base-compat when
possible though, eg when we stop supporting ghc 7.10.
2018-06-04 17:32:42 -07:00
Simon Michael
08f8be3cb4 make older ghcs mostly work with new base-compat (#794)
Using the same base-compat version across all ghc versions is kind of
the point of base-compat; now we can rely on whatever base-compat
0.10.1 provides.

hledger-api has been commented with ghc 7.10, way too much hassle.
2018-06-04 17:32:39 -07:00
Simon Michael
9b801f5746 cabal: consistent indentation 2018-06-04 17:32:39 -07:00
Simon Michael
328b2dabfe require latest base-compat, might as well (#794) 2018-06-04 17:32:32 -07:00
Peter Simons
6db7f800ee hledger-lib: fix doctest suite after recent package updates
The new version of our package set apparently contains both base-compat and
base-compat-batteries in its transitive closure. This breaks the doctest suite,
which just imports everything into scope when the tests are run, thereby making
module names like Prelude.Compat ambiguous.
2018-06-04 21:41:15 +02:00
Peter Simons
7876d3a4ef stack.yaml: update nightly to latest snapshot
- We need base-compat 0.10.x.
 - The new snapshot includes the servant packages we require.
2018-06-04 21:00:57 +02:00
Peter Simons
8c0c168cd6 Fix the build of hledger-lib with ghc 8.0.x and base-compat 0.10.x.
We don't need to import Data.Monoid because Prelude.Compat exports "<>"
already. In fact, importing that module causes build failures:

    Hledger/Read/Common.hs:725:62: error:
        Ambiguous occurrence ‘<>’
        It could refer to either ‘Sem.<>’,
                                 imported from ‘Prelude.Compat’ at Hledger/Read/Common.hs:97:1-39
                                 (and originally defined in ‘Data.Semigroup’)
                              or ‘Data.Monoid.<>’,
                                 imported from ‘Data.Monoid’ at Hledger/Read/Common.hs:110:1-18

Fixes https://github.com/simonmichael/hledger/issues/794.
2018-06-04 20:58:58 +02:00
Léo Gaspard
0808307af1 travis: use STACK variable 2018-06-03 17:14:37 -07:00
Aerex
5808e289e6 feat(hledger-ui): added neovim as a supported editor
when neovim is set as EDITOR hleger will jump to the correct line number of the transaction; before
hledger will open journal at top of the file
2018-06-03 17:11:43 -07:00
Simon Michael
65f2dd6013 tools: make incr-buildtest*: like buildtest* but dont rebuild all
[ci skip]
2018-06-03 17:04:02 -07:00
Simon Michael
f68caf529c tools: make buildtest-all: include latest stack.yaml also
[ci skip]
2018-06-03 12:31:52 -07:00
Simon Michael
66fbdc5d61 lib: enable doctests on mac again, note workaround, fix link
[ci skip]
2018-06-01 07:18:12 -07:00
Simon Michael
0d989a8b48 site: download: windows: mention #791
[ci skip]
2018-05-30 14:31:31 -07:00
Simon Michael
3e470a999f appveyor: belay that happy fix attempt; check stack version 2018-05-30 12:51:12 -07:00
Simon Michael
93e61ec0c3 windows: note issue url (#791) 2018-05-30 11:52:10 -07:00
Simon Michael
e75b2b539e appveyor: add stack local bin dir to PATH, try to get happy seen 2018-05-30 11:39:43 -07:00
Simon Michael
10ae56aea8 appveyor: expand network issue note 2018-05-30 11:10:33 -07:00
Simon Michael
840a404b16 appveyor: always install happy, avoiding today's haskell tooling fail 2018-05-30 11:10:33 -07:00
Simon Michael
d257d136e1 appveyor: don't invalidate whole C:\SR from a stack yaml change 2018-05-30 11:10:33 -07:00
Simon Michael
6d5bd27fe3 windows: use latest directory with stack-ghc8.0.yaml also 2018-05-30 11:10:33 -07:00
Simon Michael
3e2fefd494 stack: try latest directory for a startup hang with windows symlinks 2018-05-30 10:33:25 -07:00
Alex Chen
1116261f5a lib: simplify fromRawNumber 2018-05-27 07:50:26 -07:00
Alex Chen
c3f5659d75 lib: add some strictness annotations to the parser
This was done to reverse minor performance regressions introduced in the
previous commits
2018-05-27 07:50:26 -07:00
Alex Chen
d79e707485 lib: remove redundant check in accountnamep 2018-05-27 07:50:26 -07:00
Alex Chen
43aa3d479e lib: fix up runJournalParser 2018-05-27 07:50:26 -07:00
Alex Chen
d56fca1ba2 lib: superficial parser cleanups 2018-05-27 07:50:26 -07:00
Alex Chen
2a492696a9 lib: prevent the parsing of prices of prices 2018-05-27 07:50:26 -07:00
Alex Chen
edf9cc2366 lib: move handling of exponentials into fromRawNumber [API]
- Rationale:
  - The information necessary for applying exponents to a number is more
    explicitly represented in the inputs to `fromRawNumber` than in the outputs
  - This way, `exponentp` may simply return an `Int`
2018-05-27 07:50:26 -07:00
Alex Chen
f7fd6e6525 lib: refactor the raw number parser [API]
- Purpose: to reduce the verbosity of the previous implementation
- Split off `AmbiguousNumber` into its own type
- Introduce a function `AmbiguousNumber -> RawNumber` explicitly capturing the
  disambiguation logic
- Reduce the number of remaining constructors in `RawNumber` to just two,
  `WithSeparator` and `NoSeparator`
  - The choice to distinguish by the presence of digit separators is motivated
    by the need for this information later on when disallowing exponents on
    numbers with digit separators
2018-05-27 07:50:26 -07:00
Alex Chen
6ffa9cb3cd lib: rename pdigitgroup to digitgroupp for consistency 2018-05-27 07:50:26 -07:00
Alex Chen
cf9b2001e7 lib: refactor sign parser
- Extracts the handling of signs out of `fromRawNumber` and into `signp` itself
- Rationale: The sign can be applied independently from the logic in
  `fromRawNumber`
2018-05-27 07:50:26 -07:00
Jacob Weisz
7996a267f7 Update Sandstorm build files 2018-05-25 21:14:36 -05:00
Jacob Weisz
16fe1bcb08 merge gitignore 2018-05-25 20:36:40 -05:00
Jacob Weisz
844153e0fb remove submodules 2018-05-25 20:34:42 -05:00
Simon Michael
d28862d10d site: download: fix with stack link
[ci skip]
2018-05-25 07:20:57 -07:00
Simon Michael
55bea458ff install: hledger-irr updated, use latest hledger-lib again (#787)
[ci skip]
2018-05-25 07:04:20 -07:00