msgpack-haskell icon indicating copy to clipboard operation
msgpack-haskell copied to clipboard

execClient does not permit returning results

Open iphydf opened this issue 9 years ago • 2 comments

execClient returns IO (), so it always returns unit, preventing me from turning a Client a into an IO a. I'd like to be able to call an rpc method and then process the result further after tearing down the TCP connection without staying inside the Client monad.

iphydf avatar Jun 29 '16 20:06 iphydf

FYI: https://hackage.haskell.org/package/network-msgpack-rpc-0.0.5/docs/Network-MessagePack-Client.html#v:execClient implemented this.

iphydf avatar Mar 08 '20 00:03 iphydf

@iphydf yeah, I do intend to implement this for the next major release of msgpack-rpc (this is a breaking change after all)

hvr avatar Apr 09 '20 07:04 hvr