Name:                   wai-app-file-cgi
Version:                3.0.9
Author:                 Kazu Yamamoto <kazu@iij.ad.jp>
Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp>
License:                BSD3
License-File:           LICENSE
Synopsis:               File/CGI/Rev Proxy App of WAI
Description:            This WAI application library handles static files,
                        executes CGI scripts, and serves as a reverse proxy
                        (including EventSource).
Homepage:               http://www.mew.org/~kazu/proj/mighttpd/
Category:               Web, Yesod
Cabal-Version:          >= 1.10
Build-Type:             Simple

Library
  Default-Language:     Haskell2010
  GHC-Options:          -Wall
  Exposed-Modules:      Network.Wai.Application.Classic
  Other-Modules:        Network.Wai.Application.Classic.CGI
                        Network.Wai.Application.Classic.Conduit
                        Network.Wai.Application.Classic.Def
                        Network.Wai.Application.Classic.EventSource
                        Network.Wai.Application.Classic.Field
                        Network.Wai.Application.Classic.File
                        Network.Wai.Application.Classic.FileInfo
                        Network.Wai.Application.Classic.Header
                        Network.Wai.Application.Classic.Lang
                        Network.Wai.Application.Classic.Path
                        Network.Wai.Application.Classic.Range
                        Network.Wai.Application.Classic.Redirect
                        Network.Wai.Application.Classic.Status
                        Network.Wai.Application.Classic.Types
                        Network.Wai.Application.Classic.RevProxy

  Build-Depends:        base >= 4 && < 5
                      , array
                      , attoparsec >= 0.10.0.0
                      , attoparsec-conduit
                      , blaze-builder
                      , blaze-html
                      , bytestring
                      , case-insensitive
                      , conduit >= 1.1
                      , conduit-extra
                      , containers
                      , data-default-class
                      , directory
                      , filepath
                      , http-client >= 0.3
                      , http-conduit >= 2.1
                      , http-date
                      , http-types >= 0.7
                      , io-choice
                      , lifted-base
                      , mime-types
                      , network
                      , process
                      , sockaddr
                      , static-hash
                      , text
                      , transformers
                      , unix
                      , wai >= 3.0 && < 3.1
                      , wai-conduit
                      , warp >= 3.1.12 && < 3.2
                      , word8

Test-Suite doctest
  Type:                 exitcode-stdio-1.0
  Default-Language:     Haskell2010
  HS-Source-Dirs:       test
  Ghc-Options:          -threaded -Wall
  Main-Is:              doctests.hs
  Build-Depends:        base
                      , doctest >= 0.9.3

Test-Suite spec
  Type:                 exitcode-stdio-1.0
  Default-Language:     Haskell2010
  HS-Source-Dirs:       test
  Ghc-Options:          -threaded -Wall
  Main-Is:              Spec.hs
  Other-Modules:        ClassicSpec
  Build-Depends:        base
                      , bytestring
                      , conduit >= 1.1
                      , conduit-extra
                      , directory
                      , filepath
                      , hspec >= 1.3
                      , http-types
                      , unix
                      , wai >= 3.0 && < 3.1
                      , wai-app-file-cgi
                      , warp >= 3.1.12 && < 3.2
                      , HTTP

Source-Repository head
  Type:                 git
  Location:             git://github.com/kazu-yamamoto/wai-app-file-cgi
