packages feed

apiary-eventsource 0.11.3 → 0.11.4

raw patch · 2 files changed

+4/−2 lines, 2 filesdep ~apiaryPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: apiary

API changes (from Hackage documentation)

Files

apiary-eventsource.cabal view
@@ -1,5 +1,5 @@ name:                apiary-eventsource-version:             0.11.3+version:             0.11.4 synopsis:            eventsource support for apiary web framework. description:   example: <https://github.com/philopon/apiary/blob/master/examples/eventsource.hs>@@ -23,7 +23,7 @@ library   exposed-modules:     Web.Apiary.EventSource   build-depends:       base              >=4.6    && <4.8-                     , apiary            >=0.11.3 && <0.12+                     , apiary            >=0.11.3 && <0.13                      , blaze-builder     >=0.3    && <0.4   if flag(wai2apiary)     build-depends:     wai-eventsource   >=2.0    && <3.0
src/Web/Apiary/EventSource.hs view
@@ -39,12 +39,14 @@         Just b  -> send b >> flush >> loop #endif +-- | eventsource with io action. since 0.11.3. eventSourceIO :: Monad m => IO ServerEvent -> ActionT 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 chan = do     chan' <- liftIO $ dupChan chan