yesod-core 0.8

This commit is contained in:
Michael Snoyman 2011-04-07 22:09:53 +03:00
parent 9dc524f297
commit 3bff87656c
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
name: yesod-static
version: 0.0.0.1
version: 0.1.0
license: BSD3
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
@ -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