msgpack / msgpack-haskell

Haskell implementation of MessagePack / msgpack.org[Haskell]
http://hackage.haskell.org/package/msgpack
138 stars 80 forks source link

execClient does not permit returning results #71

Open iphydf opened 8 years ago

iphydf commented 8 years ago

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 commented 4 years ago

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

hvr commented 4 years ago

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