apiary-websockets 0.11.4 → 0.11.5
raw patch · 2 files changed
+6/−6 lines, 2 filesdep ~apiaryPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: apiary
API changes (from Hackage documentation)
- Web.Apiary.WebSockets: actionWithWebSockets :: (Functor n, Monad n) => Fn c ServerApp -> Fn c (ActionT n ()) -> ApiaryT c n m ()
+ Web.Apiary.WebSockets: actionWithWebSockets :: (Functor m, Monad m, Functor n, Monad n) => Fn c ServerApp -> Fn c (ActionT n ()) -> ApiaryT c n m ()
- Web.Apiary.WebSockets: actionWithWebSockets' :: (Monad n, Functor n) => ConnectionOptions -> Fn xs ServerApp -> Fn xs (ActionT n ()) -> ApiaryT xs n m ()
+ Web.Apiary.WebSockets: actionWithWebSockets' :: (Functor m, Monad m, Functor n, Monad n) => ConnectionOptions -> Fn xs ServerApp -> Fn xs (ActionT n ()) -> ApiaryT xs n m ()
- Web.Apiary.WebSockets: webSockets :: (Monad n, Functor n) => Fn xs ServerApp -> ApiaryT xs n m ()
+ Web.Apiary.WebSockets: webSockets :: (Functor m, Monad m, Functor n, Monad n) => Fn xs ServerApp -> ApiaryT xs n m ()
- Web.Apiary.WebSockets: webSockets' :: (Monad n, Functor n) => ConnectionOptions -> Fn xs ServerApp -> ApiaryT xs n m ()
+ Web.Apiary.WebSockets: webSockets' :: (Functor m, Monad m, Functor n, Monad n) => ConnectionOptions -> Fn xs ServerApp -> ApiaryT xs n m ()
Files
apiary-websockets.cabal view
@@ -1,5 +1,5 @@ name: apiary-websockets-version: 0.11.4+version: 0.11.5 synopsis: websockets support for apiary web framework. description: example: <https://github.com/philopon/apiary/blob/master/examples/websockets.hs>@@ -20,7 +20,7 @@ exposed-modules: Web.Apiary.WebSockets other-modules: build-depends: base >=4.6 && <4.8- , apiary >=0.8 && <0.15+ , apiary >=0.8 && <0.16 , wai-websockets >=2.1 && <3.1 , websockets >=0.8 && <0.9
src/Web/Apiary/WebSockets.hs view
@@ -33,16 +33,16 @@ Just r -> stopWith r -- | websocket only action. since 0.8.0.0.-webSockets' :: (Monad n, Functor n) => WS.ConnectionOptions+webSockets' :: (Functor m, Monad m, Functor n, Monad n) => WS.ConnectionOptions -> Fn xs WS.ServerApp -> ApiaryT xs n m () webSockets' conn srv = action' $ wsToApp conn srv -- | websocket only action. since 0.8.0.0.-webSockets :: (Monad n, Functor n)+webSockets :: (Functor m, Monad m, Functor n, Monad n) => Fn xs WS.ServerApp -> ApiaryT xs n m () webSockets = webSockets' WS.defaultConnectionOptions -actionWithWebSockets' :: (Monad n, Functor n)+actionWithWebSockets' :: (Functor m, Monad m, Functor n, Monad n) => WS.ConnectionOptions -> Fn xs WS.ServerApp -> Fn xs (ActionT n ())@@ -50,7 +50,7 @@ actionWithWebSockets' conn srv m = action' $ \a -> wsToApp conn srv a >> apply m a -actionWithWebSockets :: (Functor n, Monad n)+actionWithWebSockets :: (Functor m, Monad m, Functor n, Monad n) => Fn c WS.ServerApp -> Fn c (ActionT n ()) -> ApiaryT c n m ()