-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server errors out when executing functions that return () #3
Comments
Lmao is this from the binary constraint? Sounds like a weird implementation choice of them |
Yeah, a silly implementation indeed. The Binary instance of https://hackage.haskell.org/package/binary-0.8.9.1/docs/src/Data.Binary.Class.html#line-193 |
It's not wrong I guess, but in this case I guess we evaluate () for its side effects. Maybe we can give our own instance somehow |
Defining a new instance would be the principled approach but worth some hassle (construct your own newtype, etc). My makeshift patch was to send |
Temp patch - f889f6a |
This 491d579 should allow removing the temp patch. |
(Needs testing before closing) |
The problem seems to be with sending the bytestring over TCP. It encodes
()
as a message with size 0 and the receiving Client does not like this and crashes with the errorThe text was updated successfully, but these errors were encountered: