web: drop the -fwebhappstack build flag, since it breaks cabal and web libs are in flux
This commit is contained in:
parent
090c8b4dd6
commit
43f6218b97
@ -72,9 +72,7 @@ with the cabal-install tool:
|
|||||||
- `-fvty` - builds the [ui](#ui) command. (Not available on microsoft
|
- `-fvty` - builds the [ui](#ui) command. (Not available on microsoft
|
||||||
windows.)
|
windows.)
|
||||||
|
|
||||||
- `-fweb` - builds the [web](#web) command. This uses a lightweight
|
- `-fweb` - builds the [web](#web) command.
|
||||||
web server which might not support older browsers like IE6; for a
|
|
||||||
more robust web server, use `-fwebhappstack` instead.
|
|
||||||
|
|
||||||
- `-fchart` builds the [chart](#chart) command. This requires
|
- `-fchart` builds the [chart](#chart) command. This requires
|
||||||
[gtk2hs](http://www.haskell.org/gtk2hs/download/), which you'll
|
[gtk2hs](http://www.haskell.org/gtk2hs/download/), which you'll
|
||||||
@ -132,10 +130,7 @@ Here are some known issues and things to try:
|
|||||||
GHC itself, cabal may not be able to figure out the installation. This
|
GHC itself, cabal may not be able to figure out the installation. This
|
||||||
can also arise due to non-optimal dependency information configured in
|
can also arise due to non-optimal dependency information configured in
|
||||||
hledger or its dependencies. You can sometimes work around this by using
|
hledger or its dependencies. You can sometimes work around this by using
|
||||||
cabal's `--constraint` option. Eg this recipe was once used to build with
|
cabal's `--constraint` option.
|
||||||
happstack on haskell platform 2009.2.0.2 on MS Windows:
|
|
||||||
|
|
||||||
cabal install hledger -fwebhappstack --constraint="haskell-src-meta < 0.0.6" --constraint="syb-with-class < 0.6.1"
|
|
||||||
|
|
||||||
### Basic usage
|
### Basic usage
|
||||||
|
|
||||||
@ -170,7 +165,7 @@ on:
|
|||||||
hledger histogram # transactions per day, or other interval
|
hledger histogram # transactions per day, or other interval
|
||||||
hledger add # add some new transactions to the ledger file
|
hledger add # add some new transactions to the ledger file
|
||||||
hledger ui # curses ui, if installed with -fvty
|
hledger ui # curses ui, if installed with -fvty
|
||||||
hledger web # web ui, if installed with -fweb or -fwebhappstack
|
hledger web # web ui, if installed with -fweb
|
||||||
hledger chart # make a balance chart, if installed with -fchart
|
hledger chart # make a balance chart, if installed with -fchart
|
||||||
|
|
||||||
You'll find more examples below.
|
You'll find more examples below.
|
||||||
|
|||||||
@ -43,10 +43,6 @@ flag web
|
|||||||
description: enable the web ui (using simpleserver)
|
description: enable the web ui (using simpleserver)
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
flag webhappstack
|
|
||||||
description: enable the web ui (using happstack)
|
|
||||||
default: False
|
|
||||||
|
|
||||||
flag chart
|
flag chart
|
||||||
description: enable the pie chart generation
|
description: enable the pie chart generation
|
||||||
default: False
|
default: False
|
||||||
@ -111,25 +107,6 @@ executable hledger
|
|||||||
,HTTP >= 4000.0
|
,HTTP >= 4000.0
|
||||||
,applicative-extras
|
,applicative-extras
|
||||||
|
|
||||||
if flag(webhappstack)
|
|
||||||
cpp-options: -DWEBHAPPSTACK
|
|
||||||
other-modules:Hledger.Cli.Commands.Web
|
|
||||||
build-depends:
|
|
||||||
hsp
|
|
||||||
,hsx
|
|
||||||
,xhtml >= 3000.2
|
|
||||||
,loli
|
|
||||||
,io-storage
|
|
||||||
,hack-contrib
|
|
||||||
,hack
|
|
||||||
,hack-handler-happstack
|
|
||||||
,happstack >= 0.3
|
|
||||||
,happstack-data >= 0.3
|
|
||||||
,happstack-server >= 0.3
|
|
||||||
,happstack-state >= 0.3
|
|
||||||
,HTTP >= 4000.0
|
|
||||||
,applicative-extras
|
|
||||||
|
|
||||||
if flag(chart)
|
if flag(chart)
|
||||||
cpp-options: -DCHART
|
cpp-options: -DCHART
|
||||||
other-modules:Hledger.Cli.Commands.Chart
|
other-modules:Hledger.Cli.Commands.Chart
|
||||||
@ -195,25 +172,6 @@ library
|
|||||||
,HTTP >= 4000.0
|
,HTTP >= 4000.0
|
||||||
,applicative-extras
|
,applicative-extras
|
||||||
|
|
||||||
if flag(webhappstack)
|
|
||||||
cpp-options: -DWEBHAPPSTACK
|
|
||||||
exposed-modules:Hledger.Cli.Commands.Web
|
|
||||||
build-depends:
|
|
||||||
hsp
|
|
||||||
,hsx
|
|
||||||
,xhtml >= 3000.2
|
|
||||||
,loli
|
|
||||||
,io-storage
|
|
||||||
,hack-contrib
|
|
||||||
,hack
|
|
||||||
,hack-handler-happstack
|
|
||||||
,happstack >= 0.3
|
|
||||||
,happstack-data >= 0.3
|
|
||||||
,happstack-server >= 0.3
|
|
||||||
,happstack-state >= 0.3
|
|
||||||
,HTTP >= 4000.0
|
|
||||||
,applicative-extras
|
|
||||||
|
|
||||||
if flag(chart)
|
if flag(chart)
|
||||||
cpp-options: -DCHART
|
cpp-options: -DCHART
|
||||||
exposed-modules:Hledger.Cli.Commands.Chart
|
exposed-modules:Hledger.Cli.Commands.Chart
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user