File: snap-server-testsuite.cabal

package info (click to toggle)
haskell-snap-server 0.8.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 444 kB
  • sloc: haskell: 4,867; sh: 46; makefile: 2
file content (245 lines) | stat: -rw-r--r-- 7,471 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
name:           snap-server-testsuite
version:        0.1.1
build-type:     Simple
cabal-version:  >= 1.6

Flag libev
    Description: Use libev?
    Default:     False

Flag portable
  Description: Compile in cross-platform mode. No platform-specific code or
               optimizations such as C routines will be used.
  Default: False

Flag openssl
  Description: Enable https support using the HsOpenSSL library.
  Default: False

Executable testsuite
  hs-source-dirs:  suite common ../src
  main-is:         TestSuite.hs

  build-depends:
    QuickCheck                 >= 2,
    array                      >= 0.3      && <0.5,
    attoparsec                 >= 0.10     && <0.11,
    attoparsec-enumerator      >= 0.3      && <0.4,
    base                       >= 4        && <5,
    base16-bytestring          == 0.1.*,
    binary                     >= 0.5      && <0.6,
    blaze-builder              >= 0.2.1.4  && <0.4,
    blaze-builder-enumerator   >= 0.2.0    && <0.3,
    bytestring,
    bytestring-nums            >= 0.3.1    && <0.4,
    containers,
    directory,
    directory-tree,
    enumerator                 >= 0.4.15   && <0.5,
    filepath,
    http-enumerator            >= 0.7.3    && <0.8,
    HUnit                      >= 1.2      && <2,
    mtl                        >= 2        && <3,
    murmur-hash                >= 0.1      && <0.2,
    network                    == 2.3.*,
    old-locale,
    parallel                   >= 2        && <4,
    process,
    snap-core                  >= 0.8.1    && <0.9,
    template-haskell,
    test-framework             >= 0.6      && <0.7,
    test-framework-hunit       >= 0.2.7    && <0.3,
    test-framework-quickcheck2 >= 0.2.12.1 && <0.3,
    text                       >= 0.11     && <0.12,
    time,
    tls                        >= 0.8.2    && <0.9.2,
    tls-extra                  >= 0.4      && <= 0.4.4,
    transformers,
    vector                     >= 0.7      && <0.10,
    vector-algorithms          >= 0.4      && <0.6,
    PSQueue                    >= 1.1      && <1.2

  extensions:
    BangPatterns,
    CPP,
    MagicHash,
    Rank2Types,
    OverloadedStrings,
    ScopedTypeVariables,
    DeriveDataTypeable,
    PackageImports,
    ViewPatterns,
    ForeignFunctionInterface,
    EmptyDataDecls,
    GeneralizedNewtypeDeriving

  if !os(windows)
    build-depends: unix

  if flag(libev)
    build-depends: hlibev >= 0.2.5 && < 0.5
    cpp-options: -DLIBEV

  if flag(openssl)
    cpp-options: -DOPENSSL
    build-depends: HsOpenSSL >= 0.10 && <0.11

  if flag(portable) || os(windows)
    cpp-options: -DPORTABLE

  ghc-prof-options: -prof -auto-all
  ghc-options: -O2 -Wall -fhpc -fwarn-tabs
               -funbox-strict-fields -threaded
               -fno-warn-unused-do-bind -rtsopts


Executable pongserver
  hs-source-dirs:  pongserver common ../src
  main-is:         Main.hs

  build-depends:
    QuickCheck                >= 2,
    array                     >= 0.3     && <0.5,
    attoparsec                >= 0.10    && <0.11,
    attoparsec-enumerator     >= 0.3     && <0.4,
    base                      >= 4       && <5,
    base16-bytestring         == 0.1.*,
    blaze-builder             >= 0.2.1.4 && <0.4,
    blaze-builder-enumerator  >= 0.2.0   && <0.3,
    bytestring,
    bytestring-nums           >= 0.3.1   && <0.4,
    cereal                    >= 0.3     && <0.4,
    containers,
    directory-tree,
    enumerator                >= 0.4.15  && <0.5,
    filepath,
    HUnit                     >= 1.2     && <2,
    mtl                       >= 2       && <3,
    murmur-hash               >= 0.1     && <0.2,
    old-locale,
    parallel                  >= 2       && <4,
    MonadCatchIO-transformers >= 0.2.1   && <0.4,
    network                   == 2.3.*,
    snap-core                 >= 0.8.1   && <0.9,
    template-haskell,
    time,
    transformers,
    unix-compat               >= 0.2     && <0.4,
    utf8-string               >= 0.3.6   && <0.4,
    vector                    >= 0.7     && <0.10,
    vector-algorithms         >= 0.4     && <0.6,
    PSQueue                   >= 1.1     && <1.2

  if flag(portable) || os(windows)
    cpp-options: -DPORTABLE
  else
    build-depends: unix

  if flag(libev)
    build-depends: hlibev >= 0.2.5 && < 0.3
    cpp-options: -DLIBEV

  if flag(openssl)
    cpp-options: -DOPENSSL
    build-depends: HsOpenSSL >= 0.10 && <0.11

  if os(linux) && !flag(portable)
    cpp-options: -DLINUX -DHAS_SENDFILE
    other-modules:
      System.SendFile,
      System.SendFile.Linux

  if os(darwin) && !flag(portable)
    cpp-options: -DOSX -DHAS_SENDFILE
    other-modules:
      System.SendFile,
      System.SendFile.Darwin

  if os(freebsd) && !flag(portable)
    cpp-options: -DFREEBSD -DHAS_SENDFILE
    other-modules:
      System.SendFile,
      System.SendFile.FreeBSD

  if flag(portable) || os(windows)
    cpp-options: -DPORTABLE

  ghc-options: -Wall -O2 -fwarn-tabs -funbox-strict-fields -threaded
               -fno-warn-unused-do-bind -rtsopts
  ghc-prof-options: -prof -auto-all


Executable testserver
  hs-source-dirs:  testserver common ../src
  main-is:         Main.hs

  build-depends:
    QuickCheck                 >= 2,
    array                      >= 0.3      && <0.5,
    attoparsec                 >= 0.10     && <0.11,
    attoparsec-enumerator      >= 0.3      && <0.4,
    base                       >= 4        && <5,
    binary                     >= 0.5      && <0.6,
    blaze-builder              >= 0.2.1.4  && <0.4,
    blaze-builder-enumerator   >= 0.2.0    && <0.3,
    bytestring,
    bytestring-nums            >= 0.3.1    && <0.4,
    case-insensitive           >= 0.3      && <0.5,
    containers,
    directory-tree,
    enumerator                 >= 0.4.15   && <0.5,
    filepath,
    HUnit                      >= 1.2      && <2,
    MonadCatchIO-transformers  >= 0.2.1    && <0.4,
    mtl                        >= 2        && <3,
    murmur-hash                >= 0.1      && <0.2,
    network                    == 2.3.*,
    old-locale,
    parallel                   >= 2        && <4,
    snap-core                  >= 0.8.1    && <0.9,
    template-haskell,
    test-framework             >= 0.6      && <0.7,
    test-framework-hunit       >= 0.2.7    && <0.3,
    test-framework-quickcheck2 >= 0.2.12.1 && <0.3,
    text                       >= 0.11     && <0.12,
    time,
    vector                     >= 0.7      && <0.10,
    vector-algorithms          >= 0.4      && <0.6,
    PSQueue                    >= 1.1      && <1.2

  if !os(windows)
    build-depends: unix

  if flag(libev)
    build-depends: hlibev >= 0.2.5 && < 0.3
    cpp-options: -DLIBEV

  if flag(openssl)
    cpp-options: -DOPENSSL
    build-depends: HsOpenSSL >= 0.10 && <0.11

  if flag(portable) || os(windows)
    cpp-options: -DPORTABLE

  ghc-options: -O2 -Wall -fwarn-tabs
               -funbox-strict-fields -threaded
               -fno-warn-unused-do-bind -rtsopts
  ghc-prof-options: -prof -auto-all


Executable benchmark
  hs-source-dirs:  benchmark common ../src
  main-is:         Benchmark.hs

  ghc-options: -O2 -Wall -fwarn-tabs
               -funbox-strict-fields -threaded
               -fno-warn-unused-do-bind -rtsopts

  ghc-prof-options: -prof -auto-all

  build-depends:
    base >= 4 && < 5,
    network == 2.3.*,
    http-enumerator >= 0.7.1.6 && <0.8,
    tls >= 0.8.2 && <= 0.9.2,
    criterion >= 0.6 && <0.7