Simon Michael
0cd5545e26
regen cabal files/manuals
...
[ci skip]
2019-03-01 16:17:25 -08:00
Simon Michael
9fab3257e8
regen cabal files
2019-03-01 15:44:40 -08:00
Simon Michael
2dc716cdb4
web: support adding new transactions via JSON PUT ( #316 )
...
A single transaction can be added by PUT to /add.
(I read that PUT, not POST, should be used to create;
perhaps the web add form should also use PUT ?)
As with the web form, the `add` capability is required (and enabled by
default).
Here's how to test with curl:
$ curl -s http://127.0.0.1:5000/add -X PUT -H 'Content-Type: application/json' --data-binary @in.json; echo
New readJsonFile/writeJsonFile helpers in Hledger.Web.Json
are handy for generating test data. Eg:
>>> writeJsonFile "in.json" (head $ jtxns samplejournal)
2019-02-20 20:23:51 -08:00
Simon Michael
b46212ae50
web: better ToJSON instances, new FromJSON instances, utilities ( #316 )
2019-02-20 20:23:45 -08:00
Simon Michael
afd7931ca0
web: add the same 6 JSON routes as in hledger-api ( #316 )
2019-02-18 23:57:58 -08:00
Simon Michael
94753f1cea
bump to dev version
2019-02-08 11:33:44 -08:00
Simon Michael
40d1572359
bump version to 1.13
2019-02-01 17:19:19 -08:00
Simon Michael
1e5e30ae87
regen cabal files
...
[ci skip]
2019-01-25 18:33:39 -08:00
Simon Michael
0ed3ec08fa
bump version to 1.12.99
2019-01-05 07:35:54 +00:00
Simon Michael
67d7c82e9f
bump version to 1.12
2018-12-02 17:20:34 -08:00
Peter Simons
4e8f2c11d3
Allow building with base-4.12.
...
The build succeeds just fine and all test suites pass, too.
2018-10-24 10:35:11 -07:00
Simon Michael
80dc2ef03f
update cabal files with hpack 0.31
...
As in latest stack release. Hopefully this won't unleash horrors.
2018-10-18 14:44:16 -07:00
Alex Chen
2cbc41e088
Merge branch 'master' into ExceptTLayer
2018-10-09 11:19:45 -06:00
Alex Chen
e45070aab5
Update dependency bounds for megaparsec
2018-10-09 11:15:33 -06:00
Simon Michael
ff2a546319
bump version to 1.11.99
2018-10-06 09:42:12 -10:00
Simon Michael
2c9c4ebf79
Merge branch 'master' into ExceptTLayer
2018-10-04 21:04:02 -10:00
Simon Michael
b798c48040
bump version to 1.11
2018-09-30 20:07:45 -10:00
Alex Chen
3d2584d869
lib: switch to megaparsec 7
2018-09-30 20:15:12 -06:00
Simon Michael
8c18bada0c
lib, cli, ui, web: update cabal files
2018-09-22 21:01:23 -10:00
Simon Michael
45858abc9c
cli, ui, web: drop HUnit dependency
2018-09-07 13:01:50 -07:00
Simon Michael
362705a981
update cabal files
2018-09-07 12:44:52 -07:00
Simon Michael
72acb86299
cabal: bump tested-with declarations
2018-08-02 08:25:49 +01:00
Simon Michael
d62f082bce
bump version to 1.10.99 (dev)
2018-07-04 13:32:42 +01:00
Simon Michael
6242b1d784
bump version to 1.10
2018-06-30 22:08:02 +01:00
Simon Michael
f4c743eca4
web: disable test suite, broken and not testing anything useful
2018-06-30 14:48:18 +01:00
Jakub Zárybnický
70c1bb1ef0
web: Re-add warnings conditional on GHC version
2018-06-25 12:12:17 +02:00
Jakub Zárybnický
466558968b
web: Fix compilation errors for all 'stack.yaml's
2018-06-25 12:00:18 +02:00
Jakub Zárybnický
e8668e2a5c
web: Conform layout to the rest of hledger-* packages
2018-06-24 14:18:06 +02:00
Jakub Zárybnický
af98eecdf8
web: Add capabilities type, CLI options, and reading them from headers
2018-06-24 14:18:02 +02:00
Jakub Zárybnický
c952ab881b
web: Add /manage page, implement /edit, /upload, and /download
2018-06-24 14:13:04 +02:00
Jakub Zárybnický
cc1241fa20
web: Add yesod-form-generated AddForm, add GET & POST /add
2018-06-24 14:13:04 +02:00
Jakub Zárybnický
4c8d7de602
web: Fix error messages
2018-06-24 14:13:04 +02:00
Jakub Zárybnický
9beec88727
web: Move sources to src/ subdirectory
2018-06-24 14:13:04 +02:00
Jakub Zárybnický
4faf0d8b4a
web: Resurrect ImportForm and EditForm
2018-06-24 14:13:04 +02:00
Jakub Zárybnický
89ff5612ec
web: Separate the add form from Foundation & JournalR/RegisterR
2018-06-24 14:13:03 +02:00
Jakub Zárybnický
7404813239
web: Remove dead code
2018-06-24 14:13:03 +02:00
Jakub Zárybnický
50e97e05fd
web: Clean up imports
2018-06-24 14:13:03 +02: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
328b2dabfe
require latest base-compat, might as well ( #794 )
2018-06-04 17:32:32 -07: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
Alex Chen
c4ba7542d7
lib: use megaparsec 6 for all supported ghc versions
2018-05-22 12:16:46 -07:00
Simon Michael
41665d07b0
regenerate cabal files, fix tabular compilation error
2018-04-23 18:52:28 -07:00
Simon Michael
d53557b09d
regen cabal files with stack 1.7's hpack (0.28.2)
2018-04-20 06:47:52 -07:00
Simon Michael
30186e35ea
cabal: update tested-with
2018-04-20 05:24:09 -07:00
Simon Michael
4ea02bf1cb
bump version to 1.9.99
2018-04-04 17:53:38 +01:00
Simon Michael
6ebb1fb061
update cabal files
2018-03-31 19:15:24 +01:00
Simon Michael
0979dbc01f
regenerate cabal files with stack 1.6.3 to silence hpack warnings
...
[ci skip]
2018-03-31 03:24:01 +01:00
Simon Michael
21db75f1a6
update cabal files
2018-03-24 16:06:20 +00:00
Simon Michael
e85e3a96c9
web: update cabal file
...
[ci skip]
2018-03-12 04:20:56 +00:00
Simon Michael
92d48ed0a2
lib/ui/web/api: move manuals to extra-source-files in these pkgs too
...
[ci skip]
2018-01-26 11:49:26 -08:00