box-socket 0.5.0.0 → 0.5.1.0
raw patch · 2 files changed
+4/−4 lines, 2 files
Files
- box-socket.cabal +2/−2
- src/Box/TCP/Example.hs +2/−2
box-socket.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: box-socket-version: 0.5.0.0+version: 0.5.1.0 license: BSD-3-Clause license-file: LICENSE copyright: Tony Day (c) 2017@@ -13,7 +13,7 @@ description: Websockets built with the box library. build-type: Simple tested-with:- GHC ==8.10.7 || ==9.4.7 || ==9.6.3 || ==9.8.1+ GHC ==8.10.7 || ==9.2.7 || ==9.4.7 || ==9.6.3 || ==9.8.1 extra-doc-files: ChangeLog.md readme.org
src/Box/TCP/Example.hs view
@@ -75,7 +75,7 @@ -- *** Exception: Network.Socket.connect: <socket: ...>: does not exist (Connection refused) clientIO :: IO () clientIO =- clientBox defaultTCPConfig (CloseAfter 0) (dimap decodeUtf8Lenient encodeUtf8 (stdBox "q"))+ clientBox defaultTCPConfig (CloseAfter 0) (dimap decodeUtf8 encodeUtf8 (stdBox "q")) -- | "q" to close a client socket down. Ctrl-c to close the server. Reads and writes from std. --@@ -85,4 +85,4 @@ -- -- >>> cancel a serverIO :: IO ()-serverIO = serverBox defaultTCPConfig (CloseAfter 0) (dimap decodeUtf8Lenient encodeUtf8 (stdBox "q"))+serverIO = serverBox defaultTCPConfig (CloseAfter 0) (dimap decodeUtf8 encodeUtf8 (stdBox "q"))