web: cabal flag "blaze_html_0_5", off by default, uses the newer blaze-html 0.5
This commit is contained in:
parent
6db9db0be1
commit
480e9a4080
@ -47,6 +47,10 @@ flag threaded
|
|||||||
Description: Build with support for multithreaded execution.
|
Description: Build with support for multithreaded execution.
|
||||||
Default: True
|
Default: True
|
||||||
|
|
||||||
|
flag blaze_html_0_5
|
||||||
|
description: Use the newer 0.5 version of blaze-html and blaze-markup.
|
||||||
|
default: False
|
||||||
|
|
||||||
flag dev
|
flag dev
|
||||||
Description: Turn on development settings, like auto-reload templates.
|
Description: Turn on development settings, like auto-reload templates.
|
||||||
Default: False
|
Default: False
|
||||||
@ -141,7 +145,6 @@ executable hledger-web
|
|||||||
, yesod-core
|
, yesod-core
|
||||||
, yesod-default
|
, yesod-default
|
||||||
, yesod-static
|
, yesod-static
|
||||||
, blaze-html < 0.5
|
|
||||||
, clientsession
|
, clientsession
|
||||||
, hamlet
|
, hamlet
|
||||||
, network-conduit
|
, network-conduit
|
||||||
@ -153,6 +156,13 @@ executable hledger-web
|
|||||||
, wai-extra
|
, wai-extra
|
||||||
, warp
|
, warp
|
||||||
, yaml
|
, yaml
|
||||||
|
if flag(blaze_html_0_5)
|
||||||
|
build-depends:
|
||||||
|
blaze-html >= 0.5 && < 0.6
|
||||||
|
, blaze-markup >= 0.5.1 && < 0.6
|
||||||
|
else
|
||||||
|
build-depends:
|
||||||
|
blaze-html >= 0.4 && < 0.5
|
||||||
|
|
||||||
|
|
||||||
-- if flag(production)
|
-- if flag(production)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user