packages feed

box-socket 0.4.0 → 0.4.1

raw patch · 3 files changed

+13/−12 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

box-socket.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name:          box-socket-version:       0.4.0+version:       0.4.1 synopsis:      Box websockets description:   Websockets built with the box library. category:      project@@ -11,7 +11,8 @@ homepage:      https://github.com/tonyday567/box-socket#readme bug-reports:   https://github.com/tonyday567/box-socket/issues build-type:    Simple-tested-with:   GHC ==8.8.4 || ==8.10.7 || ==9.2.4 || ==9.4.2+tested-with:+  GHC ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.2.5 || ==9.4.4  source-repository head   type:     git@@ -38,8 +39,7 @@   default-language: Haskell2010   ghc-options:     -Wall -Wcompat -Wincomplete-record-updates-    -Wincomplete-uni-patterns -Wredundant-constraints -fwrite-ide-info-    -hiedir=.hie+    -Wincomplete-uni-patterns -Wredundant-constraints  executable box-socket   main-is:          box-socket.hs@@ -52,4 +52,4 @@   default-language: Haskell2010   ghc-options:     -funbox-strict-fields -fforce-recomp -threaded -rtsopts-    -with-rtsopts=-N -fwrite-ide-info -hiedir=.hie+    -with-rtsopts=-N
src/Box/Socket/Example.hs view
@@ -50,17 +50,17 @@   runClient     defaultSocketConfig     ( \conn ->-        (\b -> clientApp b conn)-          <$|> ( Box c-                   <$> qList (xs <> ["q"])-               )+        (\b -> clientApp b conn) <$|>+          ( Box c+              <$> qList (xs <> ["q"])+          )     )   r  tClientIO :: [Text] -> IO () tClientIO xs =-  (runClient defaultSocketConfig . clientApp)-    <$|> (Box (contramap (pack . show) toStdout) <$> qList (xs <> ["q"]))+  (runClient defaultSocketConfig . clientApp) <$|>+    (Box (contramap (pack . show) toStdout) <$> qList (xs <> ["q"]))  -- | main test run of client-server functionality -- the code starts a server in a thread, starts the client in the main thread, and cancels the server on completion.
src/Box/TCP.hs view
@@ -156,4 +156,5 @@ testServerSender :: IO () testServerSender =   testHarness $-    tcpSender defaultTCPConfig <$|> qList ["hi!"]+    tcpSender defaultTCPConfig <$|>+      qList ["hi!"]