packages feed

apiary-websockets 1.4.0 → 1.5.0

raw patch · 2 files changed

+7/−8 lines, 2 filesdep −web-routingdep ~apiarydep ~basenew-uploaderPVP ok

version bump matches the API change (PVP)

Dependencies removed: web-routing

Dependency ranges changed: apiary, base

API changes (from Hackage documentation)

Files

apiary-websockets.cabal view
@@ -1,5 +1,5 @@ name:                apiary-websockets-version:             1.4.0+version:             1.5.0 synopsis:            websockets support for apiary web framework. description:   example: <https://github.com/philopon/apiary/blob/master/examples/websockets.hs>@@ -19,11 +19,10 @@ library   exposed-modules:     Web.Apiary.WebSockets   other-modules:       -  build-depends:       base               >=4.6   && <4.8-                     , apiary             >=1.1   && <1.5+  build-depends:       base               >=4.7   && <5.0+                     , apiary             >=2.1   && <3.0                      , wai-websockets     >=2.1   && <3.1                      , websockets         >=0.8   && <0.10-                     , web-routing    hs-source-dirs:      src   ghc-options:         -O2 -Wall
src/Web/Apiary/WebSockets.hs view
@@ -1,6 +1,6 @@ module Web.Apiary.WebSockets (     webSockets, webSockets'-    , actionWithWebSockets +    , actionWithWebSockets     , actionWithWebSockets'     , websocketsToAction     -- * Reexport@@ -17,7 +17,7 @@ import Control.Monad.Apiary(ApiaryT, action) import Control.Monad.Apiary.Action(ActionT, getRequest, getParams, stopWith) -import qualified Network.Routing.Dict as Dict+import qualified Data.Apiary.Routing.Dict as Dict import qualified Network.Wai.Handler.WebSockets as WS import qualified Network.WebSockets as WS @@ -28,7 +28,7 @@     , sendTextData, sendBinaryData, sendClose, sendPing     ) -websocketsToAction :: Monad m => WS.ConnectionOptions +websocketsToAction :: Monad m => WS.ConnectionOptions                    -> (Dict.Dict prms -> WS.ServerApp) -> ActionT exts prms m () websocketsToAction conn srv = do     req <- getRequest@@ -48,7 +48,7 @@ webSockets = webSockets' WS.defaultConnectionOptions  actionWithWebSockets' :: (Monad m, Monad actM)-                      => WS.ConnectionOptions +                      => WS.ConnectionOptions                       -> (Dict.Dict prms -> WS.ServerApp)                       -> ActionT exts prms actM ()                       -> ApiaryT exts prms actM m ()