From 3bff87656c9c6f9e9b3a0deb9d26036006d33508 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Thu, 7 Apr 2011 22:09:53 +0300 Subject: [PATCH] yesod-core 0.8 --- Yesod/Helpers/Static.hs | 3 ++- yesod-static.cabal | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Yesod/Helpers/Static.hs b/Yesod/Helpers/Static.hs index 2bf08a2d..127b2535 100644 --- a/Yesod/Helpers/Static.hs +++ b/Yesod/Helpers/Static.hs @@ -59,6 +59,7 @@ import Data.Digest.Pure.MD5 import qualified Data.ByteString.Base64 import qualified Data.ByteString.Char8 as S8 import qualified Data.Serialize +import Data.Text (Text) import Network.Wai.Application.Static ( defaultMimeTypeByExt, StaticSettings (..), staticAppPieces @@ -88,7 +89,7 @@ static fp = Static $ StaticSettings fp [] (Just defaultListing) -- would generate a url such as 'http://site.com/static/thumb001.jpg?foo=5&bar=choc' -- The StaticRoute constructor can be used when url's cannot be statically generated at compile-time. -- E.g. When generating image galleries. -data StaticRoute = StaticRoute [String] [(String, String)] +data StaticRoute = StaticRoute [Text] [(Text, Text)] deriving (Eq, Show, Read) type instance Route Static = StaticRoute diff --git a/yesod-static.cabal b/yesod-static.cabal index 810426af..a6c996cb 100644 --- a/yesod-static.cabal +++ b/yesod-static.cabal @@ -1,5 +1,5 @@ name: yesod-static -version: 0.0.0.1 +version: 0.1.0 license: BSD3 license-file: LICENSE author: Michael Snoyman @@ -9,7 +9,7 @@ category: Web, Yesod stability: Stable cabal-version: >= 1.6 build-type: Simple -homepage: http://docs.yesodweb.com/ +homepage: http://www.yesodweb.com/ flag test description: Build the executable to run unit tests @@ -17,16 +17,16 @@ flag test library build-depends: base >= 4 && < 5 - , yesod-core >= 0.7 && < 0.8 + , yesod-core >= 0.8 && < 0.9 , base64-bytestring >= 0.1.0.1 && < 0.2 , pureMD5 >= 2.1.0.3 && < 2.2 , cereal >= 0.3 && < 0.4 , bytestring >= 0.9 && < 0.10 - , web-routes >= 0.23 && < 0.24 , template-haskell , directory >= 1.0 && < 1.2 , transformers >= 0.2 && < 0.3 - , wai-app-static >= 0.0.1 && < 0.1 + , wai-app-static >= 0.1 && < 0.2 + , text >= 0.5 && < 1.0 exposed-modules: Yesod.Helpers.Static ghc-options: -Wall