yesod-core 0.8
This commit is contained in:
parent
9dc524f297
commit
3bff87656c
@ -59,6 +59,7 @@ import Data.Digest.Pure.MD5
|
|||||||
import qualified Data.ByteString.Base64
|
import qualified Data.ByteString.Base64
|
||||||
import qualified Data.ByteString.Char8 as S8
|
import qualified Data.ByteString.Char8 as S8
|
||||||
import qualified Data.Serialize
|
import qualified Data.Serialize
|
||||||
|
import Data.Text (Text)
|
||||||
|
|
||||||
import Network.Wai.Application.Static
|
import Network.Wai.Application.Static
|
||||||
( defaultMimeTypeByExt, StaticSettings (..), staticAppPieces
|
( 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'
|
-- 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.
|
-- The StaticRoute constructor can be used when url's cannot be statically generated at compile-time.
|
||||||
-- E.g. When generating image galleries.
|
-- E.g. When generating image galleries.
|
||||||
data StaticRoute = StaticRoute [String] [(String, String)]
|
data StaticRoute = StaticRoute [Text] [(Text, Text)]
|
||||||
deriving (Eq, Show, Read)
|
deriving (Eq, Show, Read)
|
||||||
|
|
||||||
type instance Route Static = StaticRoute
|
type instance Route Static = StaticRoute
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-static
|
name: yesod-static
|
||||||
version: 0.0.0.1
|
version: 0.1.0
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
@ -9,7 +9,7 @@ category: Web, Yesod
|
|||||||
stability: Stable
|
stability: Stable
|
||||||
cabal-version: >= 1.6
|
cabal-version: >= 1.6
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
homepage: http://docs.yesodweb.com/
|
homepage: http://www.yesodweb.com/
|
||||||
|
|
||||||
flag test
|
flag test
|
||||||
description: Build the executable to run unit tests
|
description: Build the executable to run unit tests
|
||||||
@ -17,16 +17,16 @@ flag test
|
|||||||
|
|
||||||
library
|
library
|
||||||
build-depends: base >= 4 && < 5
|
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
|
, base64-bytestring >= 0.1.0.1 && < 0.2
|
||||||
, pureMD5 >= 2.1.0.3 && < 2.2
|
, pureMD5 >= 2.1.0.3 && < 2.2
|
||||||
, cereal >= 0.3 && < 0.4
|
, cereal >= 0.3 && < 0.4
|
||||||
, bytestring >= 0.9 && < 0.10
|
, bytestring >= 0.9 && < 0.10
|
||||||
, web-routes >= 0.23 && < 0.24
|
|
||||||
, template-haskell
|
, template-haskell
|
||||||
, directory >= 1.0 && < 1.2
|
, directory >= 1.0 && < 1.2
|
||||||
, transformers >= 0.2 && < 0.3
|
, 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
|
exposed-modules: Yesod.Helpers.Static
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user