web: fix compilation error with -fblaze_html_0_5 flag
This commit is contained in:
parent
f8a9cce43d
commit
155cb0eafe
@ -52,7 +52,12 @@ import Data.Time.Format
|
|||||||
import System.FilePath (takeFileName)
|
import System.FilePath (takeFileName)
|
||||||
import System.IO.Storage (putValue, getValue)
|
import System.IO.Storage (putValue, getValue)
|
||||||
import System.Locale (defaultTimeLocale)
|
import System.Locale (defaultTimeLocale)
|
||||||
|
#if BLAZE_HTML_0_5
|
||||||
|
import Text.Blaze.Internal (preEscapedString)
|
||||||
|
import Text.Blaze.Html (toHtml)
|
||||||
|
#else
|
||||||
import Text.Blaze (preEscapedString, toHtml)
|
import Text.Blaze (preEscapedString, toHtml)
|
||||||
|
#endif
|
||||||
import Text.Hamlet hiding (hamlet)
|
import Text.Hamlet hiding (hamlet)
|
||||||
import Text.Printf
|
import Text.Printf
|
||||||
import Yesod.Core
|
import Yesod.Core
|
||||||
|
|||||||
@ -154,6 +154,7 @@ executable hledger-web
|
|||||||
, warp
|
, warp
|
||||||
, yaml
|
, yaml
|
||||||
if flag(blaze_html_0_5)
|
if flag(blaze_html_0_5)
|
||||||
|
cpp-options: -DBLAZE_HTML_0_5
|
||||||
build-depends:
|
build-depends:
|
||||||
blaze-html >= 0.5 && < 0.6
|
blaze-html >= 0.5 && < 0.6
|
||||||
, blaze-markup >= 0.5.1 && < 0.6
|
, blaze-markup >= 0.5.1 && < 0.6
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user