nh2 / nh2/call-haskell-from-anything

Returning complex objects.

Abierto
#11 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Haskell
Estrellas
402
Forks
20
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.