websockets 0.12.4.0 → 0.12.4.1
raw patch · 3 files changed
+15/−10 lines, 3 filesdep ~network
Dependency ranges changed: network
Files
- CHANGELOG +5/−0
- example/server.lhs +3/−3
- websockets.cabal +7/−7
CHANGELOG view
@@ -1,3 +1,8 @@+# CHANGELOG++- 0.12.4.1 (2018-05-11)+ * Bump `network` dependency to 2.7+ - 0.12.4.0 (2018-03-13) * Remove `blaze-builder` dependency * Bump `streaming-commons` dependency to 0.2
example/server.lhs view
@@ -131,7 +131,7 @@ > T.intercalate ", " (map fst s) > broadcast (fst client `mappend` " joined") s' > return s'-> talk conn state client+> talk client state > where > prefix = "Hi! I am " > client = (T.drop (T.length prefix) msg, conn)@@ -144,8 +144,8 @@ The talk function continues to read messages from a single client until he disconnects. All messages are broadcasted to the other clients. -> talk :: WS.Connection -> MVar ServerState -> Client -> IO ()-> talk conn state (user, _) = forever $ do+> talk :: Client -> MVar ServerState -> IO ()+> talk (user, conn) state = forever $ do > msg <- WS.receiveData conn > readMVar state >>= broadcast > (user `mappend` ": " `mappend` msg)
websockets.cabal view
@@ -1,5 +1,5 @@ Name: websockets-Version: 0.12.4.0+Version: 0.12.4.1 Synopsis: A sensible and clean way to write WebSocket-capable servers in Haskell.@@ -24,7 +24,7 @@ License: BSD3 License-file: LICENCE Copyright: (c) 2010-2011 Siniša Biđin- (c) 2011-2013 Jasper Van der Jeugt+ (c) 2011-2018 Jasper Van der Jeugt (c) 2011 Steffen Schuldenzucker (c) 2011 Alex Lang Author: Siniša Biđin <sinisa@bidin.cc>@@ -87,7 +87,7 @@ bytestring-builder < 0.11, case-insensitive >= 0.3 && < 1.3, containers >= 0.3 && < 0.6,- network >= 2.3 && < 2.7,+ network >= 2.3 && < 2.8, random >= 1.0 && < 1.2, SHA >= 1.5 && < 1.7, streaming-commons >= 0.1 && < 0.3,@@ -144,7 +144,7 @@ bytestring-builder < 0.11, case-insensitive >= 0.3 && < 1.3, containers >= 0.3 && < 0.6,- network >= 2.3 && < 2.7,+ network >= 2.3 && < 2.8, random >= 1.0 && < 1.2, SHA >= 1.5 && < 1.7, streaming-commons >= 0.1 && < 0.3,@@ -170,7 +170,7 @@ bytestring-builder < 0.11, case-insensitive >= 0.3 && < 1.3, containers >= 0.3 && < 0.6,- network >= 2.3 && < 2.7,+ network >= 2.3 && < 2.8, random >= 1.0 && < 1.2, SHA >= 1.5 && < 1.7, text >= 0.10 && < 1.3,@@ -198,7 +198,7 @@ bytestring-builder < 0.11, case-insensitive >= 0.3 && < 1.3, containers >= 0.3 && < 0.6,- network >= 2.3 && < 2.7,+ network >= 2.3 && < 2.8, random >= 1.0 && < 1.2, SHA >= 1.5 && < 1.7, text >= 0.10 && < 1.3,@@ -224,7 +224,7 @@ bytestring-builder < 0.11, case-insensitive >= 0.3 && < 1.3, containers >= 0.3 && < 0.6,- network >= 2.3 && < 2.7,+ network >= 2.3 && < 2.8, random >= 1.0 && < 1.2, SHA >= 1.5 && < 1.7, text >= 0.10 && < 1.3,