apiary-eventsource 0.11.6.1 → 0.16.0
raw patch · 2 files changed
+9/−9 lines, 2 filesdep ~apiaryPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: apiary
API changes (from Hackage documentation)
- Web.Apiary.EventSource: eventSourceChan :: MonadIO m => Chan ServerEvent -> ActionT m ()
+ Web.Apiary.EventSource: eventSourceChan :: MonadIO m => Chan ServerEvent -> ActionT exts m ()
- Web.Apiary.EventSource: eventSourceIO :: Monad m => IO ServerEvent -> ActionT m ()
+ Web.Apiary.EventSource: eventSourceIO :: Monad m => IO ServerEvent -> ActionT exts m ()
Files
apiary-eventsource.cabal view
@@ -1,5 +1,5 @@ name: apiary-eventsource-version: 0.11.6.1+version: 0.16.0 synopsis: eventsource support for apiary web framework. description: example: <https://github.com/philopon/apiary/blob/master/examples/eventsource.hs>@@ -22,14 +22,14 @@ library exposed-modules: Web.Apiary.EventSource- build-depends: base >=4.6 && <4.8- , apiary >=0.11.3 && <0.16- , blaze-builder >=0.3 && <0.4+ build-depends: base >=4.6 && <4.8+ , apiary >=0.16 && <0.17+ , blaze-builder >=0.3 && <0.4 if flag(wai2apiary)- build-depends: wai-eventsource >=2.0 && <3.0- , conduit >=1.1 && <1.2+ build-depends: wai-eventsource >=2.0 && <3.0+ , conduit >=1.1 && <1.2 else- build-depends: wai-extra >=3.0 && <3.1+ build-depends: wai-extra >=3.0 && <3.1 hs-source-dirs: src ghc-options: -O2 -Wall
src/Web/Apiary/EventSource.hs view
@@ -41,14 +41,14 @@ #endif -- | eventsource with io action. since 0.11.3.-eventSourceIO :: Monad m => IO ServerEvent -> ActionT m ()+eventSourceIO :: Monad m => IO ServerEvent -> ActionT exts m () eventSourceIO io = do status status200 contentType "text/event-stream" stream $ ioToSource io -- | eventsource with chan. since 0.11.3.-eventSourceChan :: MonadIO m => Chan ServerEvent -> ActionT m ()+eventSourceChan :: MonadIO m => Chan ServerEvent -> ActionT exts m () eventSourceChan chan = do chan' <- liftIO $ dupChan chan eventSourceIO (readChan chan')