on master help sign in
cleanup wai-eventsource cabal
0ffd738Greg Weber
wai-eventsource/wai-eventsource.cabal+17−8
@@ -10,21 +10,30 @@ Category: Web
10Build-type: Simple
10Build-type: Simple
11Cabal-version: >=1.2
11Cabal-version: >=1.2
12
12
13+flag example
14+
15+-- TODO: Library interface
16+
13Executable wai-eventsource
17Executable wai-eventsource
18+ if flag(example)
19+ buildable: True
20+ else
21+ buildable: False
22+
14 hs-source-dirs: src
23 hs-source-dirs: src
15 main-is: Main.hs
24 main-is: Main.hs
16
25
17 Build-depends:
26 Build-depends:
18− base >= 4.3 && < 5
27+ base >= 4.3 && < 5
19 , bytestring >= 0.9.1.4 && < 0.10
28 , bytestring >= 0.9.1.4 && < 0.10
20− , blaze-builder >= 0.3 && < 0.4
29+ , blaze-builder >= 0.3 && < 0.4
21 , MonadCatchIO-transformers >= 0.2.1 && < 0.3
30 , MonadCatchIO-transformers >= 0.2.1 && < 0.3
22− , mtl >= 2 && < 3
31+ , mtl >= 2 && < 3
23− , http-types >= 0.6 && < 0.7
32+ , http-types >= 0.6 && < 0.7
24− , enumerator >= 0.4.8 && < 0.5
33+ , enumerator >= 0.4.8 && < 0.5
25− , time >= 1.2 && < 1.4
34+ , time >= 1.2 && < 1.4
26− , wai >= 0.4
35+ , wai >= 0.4
27− , warp >= 0.4
36+ , warp >= 0.4
28
37
29 if impl(ghc >= 6.12.0)
38 if impl(ghc >= 6.12.0)
30 ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields
39 ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields