zeromq4-simple 0.0.0.1 → 0.0.0.2
raw patch · 2 files changed
+8/−2 lines, 2 files
Files
- src/System/ZMQ4/Simple.hs +6/−0
- zeromq4-simple.cabal +2/−2
src/System/ZMQ4/Simple.hs view
@@ -195,6 +195,9 @@ sendJson :: Sendable from to aux => ToJSON a => aux -> Socket z from to loc -> a -> ZMQ z () sendJson a s x = send a s (LBS.toStrict (encode x) :| []) +instance Sendable Pair Pair () where+ send () (Socket s) xs = Z.sendMulti s xs+ instance Sendable Pub Sub () where send () (Socket s) xs = Z.sendMulti s xs @@ -242,6 +245,9 @@ Just (aux, msg :| _) -> case decode (LBS.fromStrict msg) of Nothing -> pure Nothing Just x -> pure (Just (aux,x))++instance Receivable Pair Pair () where+ receive (Socket s) = receiveBasic s instance Receivable Sub Pub () where receive (Socket s) = receiveBasic s
zeromq4-simple.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 1c511c7f2be6e9a8547e2f2a01b602ac98b742e3835853a1f61af213b8c22268+-- hash: 8a9a9f8e0ba39d0e81e391600f8481ac025ac0327f2aaae5709c9108a72530c4 name: zeromq4-simple-version: 0.0.0.1+version: 0.0.0.2 synopsis: More constrained extensions to zeromq4-haskell description: Please see the README on GitHub at <https://github.com/athanclark/zeromq4-simple#readme> category: System, FFI