Turn on blaze-html 0.5 by default

This commit is contained in:
Michael Snoyman 2012-05-09 09:49:23 +03:00
parent 07d26c0b2c
commit 468b013860
7 changed files with 9 additions and 6 deletions

View File

@ -10,4 +10,3 @@
./yesod-default
./yesod-test
./yesod
./yesod-test

View File

@ -14,7 +14,7 @@ description: Authentication for Yesod.
flag blaze_html_0_5
description: use blaze-html 0.5 and blaze-markup 0.5
default: False
default: True
library
build-depends: base >= 4 && < 5

View File

@ -42,7 +42,7 @@ flag test
flag blaze_html_0_5
description: use blaze-html 0.5 and blaze-markup 0.5
default: False
default: True
library
-- Work around a bug in cabal. Without this, wai-test doesn't get built and

View File

@ -74,7 +74,11 @@ import Blaze.ByteString.Builder (writeByteString, toLazyByteString)
import Blaze.ByteString.Builder.Internal.Write (fromWriteList)
import Database.Persist.Store (PersistEntityBackend)
#if MIN_VERSION_blaze_html(0, 5, 0)
import Text.Blaze.Html.Renderer.String (renderHtml)
#else
import Text.Blaze.Renderer.String (renderHtml)
#endif
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
import Data.Text (Text, unpack, pack)

View File

@ -14,7 +14,7 @@ description: Form handling support for Yesod Web Framework
flag blaze_html_0_5
description: use blaze-html 0.5 and blaze-markup 0.5
default: False
default: True
library
build-depends: base >= 4 && < 5

View File

@ -14,7 +14,7 @@ description: Helper functions and data types for producing News feeds.
flag blaze_html_0_5
description: use blaze-html 0.5 and blaze-markup 0.5
default: False
default: True
library
build-depends: base >= 4 && < 5

View File

@ -64,7 +64,7 @@ extra-source-files:
flag blaze_html_0_5
description: use blaze-html 0.5 and blaze-markup 0.5
default: False
default: True
library
build-depends: base >= 4.3 && < 5