packages feed

yesod-websockets 0.3.0.1 → 0.3.0.2

raw patch · 3 files changed

+12/−3 lines, 3 files

Files

ChangeLog.md view
@@ -1,3 +1,12 @@+## 0.3.0.2++* `sendClose` and `sendPing` correctly find the `Connection` from `WebSocketsT`++  Previously, these types were incorrectly typed to look for the `Connection` on+  the `m` of `WebSocketsT m ()`, and not via `WebSocketsT` itself. Because this+  made them practically impossible to use, this change is unlikely to break any+  existing code.+ ## 0.3.0.1  * Minor cabal file improvements
Yesod/WebSockets.hs view
@@ -213,7 +213,7 @@ sendPing   :: (MonadIO m, WS.WebSocketsData a, MonadReader WS.Connection m)   => a-  -> WebSocketsT m ()+  -> m () sendPing = wrapWS WS.sendPing  -- | Send a ping message to the client.@@ -242,7 +242,7 @@ sendClose   :: (MonadIO m, WS.WebSocketsData a, MonadReader WS.Connection m)   => a-  -> WebSocketsT m ()+  -> m () sendClose = wrapWS WS.sendClose  -- | Send a close request to the client.
yesod-websockets.cabal view
@@ -1,5 +1,5 @@ name:                yesod-websockets-version:             0.3.0.1+version:             0.3.0.2 synopsis:            WebSockets support for Yesod homepage:            https://github.com/yesodweb/yesod license:             MIT