name:            wai-app-static
version:         0.3.0
license:         BSD3
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>
maintainer:      Michael Snoyman <michael@snoyman.com>
synopsis:        WAI application for static serving
description:     Also provides some helper functions and datatypes for use outside of WAI.
category:        Web, Yesod
stability:       Stable
cabal-version:   >= 1.8
build-type:      Simple
homepage:        http://www.yesodweb.com/
Extra-source-files: folder.png, haskell.png

Flag print
    Description:   print debug info
    Default:       False

library
    build-depends:   base                      >= 4        && < 5
                   , wai                       >= 0.4      && < 0.5
                   , bytestring                >= 0.9.1.4
                   , http-types                >= 0.6      && < 0.7
                   , transformers              >= 0.2.2    && < 0.4
                   , unix-compat               >= 0.2      && < 0.3
                   , directory                 >= 1.0      && < 1.2
                   , containers                >= 0.2      && < 0.5
                   , blaze-html                >= 0.4      && < 0.5
                   , time                      >= 1.1.4    && < 1.3
                   , old-locale                >= 1.0.0.2  && < 1.1
                   , file-embed                >= 0.0.3.1  && < 0.1
                   , text                      >= 0.5      && < 1.0
                   , blaze-builder             >= 0.2.1.4  && < 0.4
                   , base64-bytestring         >= 0.1      && < 0.2
                   , cryptohash                >= 0.7      && < 0.8
                   , http-date
    exposed-modules: Network.Wai.Application.Static
    ghc-options:     -Wall
    extensions:     CPP

    if flag(print)
      cpp-options:  -DPRINT

test-suite runtests
    hs-source-dirs: tests
    main-is: runtests.hs
    type: exitcode-stdio-1.0

    build-depends:   base                      >= 4        && < 5
                   , hspec                     >= 0.8   && < 0.10
                   , HUnit
                   , unix-compat               >= 0.2      && < 0.3
                   , time                      >= 1.1.4    && < 1.3
                   , old-locale                >= 1.0.0.2  && < 1.1
                   , http-date
                   , Cabal
                   , wai-app-static            >= 0.3
                   , wai-test                  >= 1.2 && < 2.0
                   , wai                       >= 0.4      && < 0.5
                   , http-types                >= 0.6      && < 0.7
                   , network                   >= 2.2      && < 2.4
                   , bytestring                >= 0.9.1.4  && < 0.10
                   , text                      >= 0.5      && < 0.12
                   , transformers              >= 0.2.2    && < 0.4
                   -- , containers
  ghc-options:   -Wall

source-repository head
  type:     git
  location: https://github.com/yesodweb/yesod
