on master help sign in
Minor tweaks to wai-eventsource
commit7002d8b88badae086df638970476ccef4d81436e authorMichael Snoyman <michael@snoyman.com> dateThu 19 Jan 2012, 19:35 (15 years ago) parent29d2aaa
4 files changed+45−39
wai-eventsource/LICENSE+25 wai-eventsource/Setup.lhs+7 wai-eventsource/src/Network/Wai/EventSource.hs+1−1 wai-eventsource/wai-eventsource.cabal+12−38
wai-eventsource/LICENSEnew file+25
@@ -0,0 +1,25 @@
1+The following license covers this documentation, and the source code, except
2+where otherwise indicated.
3+
4+Copyright 2012, Bardur Arantsson. All rights reserved.
5+
6+Redistribution and use in source and binary forms, with or without
7+modification, are permitted provided that the following conditions are met:
8+
9+* Redistributions of source code must retain the above copyright notice, this
10+ list of conditions and the following disclaimer.
11+
12+* Redistributions in binary form must reproduce the above copyright notice,
13+ this list of conditions and the following disclaimer in the documentation
14+ and/or other materials provided with the distribution.
15+
16+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND ANY EXPRESS OR
17+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19+EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
20+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22+OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
wai-eventsource/Setup.lhsnew file+7
@@ -0,0 +1,7 @@
1+#!/usr/bin/env runhaskell
2+
3+> module Main where
4+> import Distribution.Simple
5+
6+> main :: IO ()
7+> main = defaultMain
wai-eventsource/src/Network/Wai/EventSource.hs+1−1
@@ -6,7 +6,7 @@ module Network.Wai.EventSource (
66
77import Blaze.ByteString.Builder (Builder)
88import Control.Concurrent.Chan (Chan, dupChan, readChan)
9−import Control.Monad.Trans (liftIO)
9+import Control.Monad.IO.Class (liftIO)
1010import qualified Data.Conduit as C
1111import Network.HTTP.Types (statusOK)
1212import Network.Wai (Application, Response(..))
wai-eventsource/wai-eventsource.cabal+12−38
@@ -1,17 +1,16 @@
11Name: wai-eventsource
2−Version: 0.1
3−Synopsis: Project Synopsis Here
4−Description: Project Description Here
2+Version: 1.0.0
3+Synopsis: WAI support for server-sent events
4+Description: WAI support for server-sent events
55License: BSD3
66Author: Chris Smigh, Mathias Biilmann Christensen
77Maintainer: info@mathias-biilmann.net, greg@gregweber.info
88Stability: Experimental
99Category: Web
1010Build-type: Simple
11−Cabal-version: >=1.2
12−
13−flag example
14−
11+Cabal-version: >=1.8
12+homepage: http://www.yesodweb.com/book/wai
13+license-file: LICENSE
1514
1615Library
1716 Build-depends:
@@ -19,41 +18,16 @@ Library
1918 , bytestring >= 0.9.1.4 && < 0.10
2019 , blaze-builder >= 0.3 && < 0.4
2120 , conduit
22− , MonadCatchIO-transformers >= 0.2.1 && < 0.3
23− , mtl >= 2 && < 3
2421 , http-types >= 0.6 && < 0.7
25− , wai >= 0.4
26− , warp >= 0.4
22+ , wai >= 1.0
23+ , warp >= 1.0
24+ , transformers
2725
2826 ghc-options: -Wall
2927 hs-source-dirs: src
3028 exposed-modules: Network.Wai.EventSource
3129 other-modules: Network.Wai.EventSource.EventStream
3230
33−Executable wai-eventsource
34− if flag(example)
35− buildable: True
36− else
37− buildable: False
38−
39− hs-source-dirs: src
40− main-is: Main.hs
41−
42− Build-depends:
43− base >= 4.3 && < 5
44− , bytestring >= 0.9.1.4 && < 0.10
45− , blaze-builder >= 0.3 && < 0.4
46− , conduit >= 0.0 && < 0.1
47− , MonadCatchIO-transformers >= 0.2.1 && < 0.3
48− , mtl >= 2 && < 3
49− , http-types >= 0.6 && < 0.7
50− , time >= 1.2 && < 1.4
51− , wai >= 0.4
52− , warp >= 0.4
53−
54− if impl(ghc >= 6.12.0)
55− ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields
56− -fno-warn-unused-do-bind
57− else
58− ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields
59−
31+source-repository head
32+ type: git
33+ location: git://github.com/yesodweb/wai.git