File: wai-app-static.cabal

package info (click to toggle)
haskell-wai-app-static 3.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 188 kB
  • sloc: haskell: 1,448; makefile: 4
file content (113 lines) | stat: -rw-r--r-- 4,053 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name:            wai-app-static
version:         3.1.9
license:         MIT
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>
maintainer:      Michael Snoyman <michael@snoyman.com>, Greg Weber <greg@gregweber.info>
synopsis:        WAI application for static serving
description:     API docs and the README are available at <http://www.stackage.org/package/wai-app-static>.
category:        Web, Yesod
stability:       Stable
cabal-version:   >= 1.10
build-type:      Simple
homepage:        http://www.yesodweb.com/book/web-application-interface
Extra-source-files:
  images/folder.png
  images/haskell.png
  test/*.hs
  test/a/b
  tests.hs
  README.md
  ChangeLog.md

Flag print
    Description:   print debug info
    Default:       False

Flag crypton
    Description:   Use the crypton library for MD5 computation
    Default:       True

library
    default-language: Haskell2010
    build-depends:   base                      >= 4.12     && < 5
                   , wai                       >= 3.0      && < 3.3
                   , bytestring                >= 0.10.4
                   , http-types                >= 0.7
                   , transformers              >= 0.2.2
                   , unix-compat               >= 0.2
                   , directory                 >= 1.0.1
                   , containers                >= 0.2
                   , time                      >= 1.1.4
                   , old-locale                >= 1.0.0.2
                   , file-embed                >= 0.0.3.1
                   , text                      >= 0.7
                   , http-date
                   , blaze-html                >= 0.5
                   , blaze-markup              >= 0.5.1
                   , mime-types                >= 0.1      && < 0.2
                   , unordered-containers      >= 0.2
                   , template-haskell          >= 2.7
                   , zlib                      >= 0.5
                   , filepath
                   , wai-extra                 >= 3.0      && < 3.2
                   , optparse-applicative      >= 0.7
                   , warp                      >= 3.0.11   && < 3.5
    if flag(crypton)
      build-depends: crypton                   >= 0.6
                   , memory                    >= 0.7
    else
      build-depends: base64-bytestring         >= 0.1
                   , cryptohash-md5            >= 0.11.101

    exposed-modules: Network.Wai.Application.Static
                     WaiAppStatic.Storage.Filesystem
                     WaiAppStatic.Storage.Embedded
                     WaiAppStatic.Listing
                     WaiAppStatic.Types
                     WaiAppStatic.CmdLine
    other-modules:   Util
                     WaiAppStatic.Storage.Embedded.Runtime
                     WaiAppStatic.Storage.Embedded.TH
    ghc-options:     -Wall

    if flag(print)
      cpp-options:  -DPRINT

Executable warp
  default-language: Haskell2010
  Main-is:        warp-static.hs
  hs-source-dirs: app
  Build-depends: base            >= 4                  && < 5
               , wai-app-static

test-suite runtests
    default-language: Haskell2010
    hs-source-dirs: test
    other-modules:  EmbeddedTestEntries
                  , WaiAppEmbeddedTest
                  , WaiAppStaticTest
    main-is: ../tests.hs
    type: exitcode-stdio-1.0

    build-depends:   base                      >= 4        && < 5
                   , hspec                     >= 1.3
                   , unix-compat
                   , http-date
                   , wai-app-static
                   , wai-extra
                   , wai
                   , http-types
                   , bytestring
                   , text
                   , transformers
                   , mime-types
                   , zlib
                   , filepath
                   , temporary
                   , mockery
    ghc-options:   -Wall

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