* TEXT EVERYWHERE, WHERE MY STRINGS AT?

This commit is contained in:
"Vincent Ambo ext:(%22) 2012-03-06 19:39:54 +01:00
parent d4fa02deed
commit 8c90ebdb49
3 changed files with 43 additions and 29 deletions

View file

@ -6,7 +6,8 @@ import Control.Applicative (optional)
import Control.Monad (msum)
import Data.Monoid (mempty)
import Data.ByteString.Char8 (ByteString)
import Data.Text hiding (map, length, zip, head, drop)
import Data.Text (Text)
import qualified Data.Text as T
import Data.Time
import Database.CouchDB
import Happstack.Server
@ -60,7 +61,7 @@ tryEntry :: Maybe Entry -> Response
tryEntry Nothing = toResponse $ showError NotFound
tryEntry (Just entry) = toResponse $ blogTemplate eLang eTitle $ renderEntry entry
where
eTitle = ": " ++ title entry
eTitle = T.pack $ ": " ++ title entry
eLang = lang entry
showIndex :: BlogLang -> ServerPart Response