nh2 / nh2/call-haskell-from-anything
Returning complex objects.
- Dominant language
- Haskell
- Stars
- 402
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
Hi, it'e me again. I'm not sure this is the right place for my question but I'll just go ahead and ask. I've been playing around with this library extensively and I am running into trouble when returning more complex objects.
That bites me already when returning something like `[0]` from a function. The ffi (i.e. in Ruby) assumes it encountered the end of the string when it finds `null` somewhere along the way which breaks deserialization (at least I think that's what's happening). I don't really see a viable workaround. I would want to return the size of the message along with the message but I have no idea how to do that. Are there other workarounds? Am I completely missing a point here?
Thanks for your time.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.