I tried just that (I'm one of the tweet mentioned).
I did not think of the libruby approach, but I spent a lot of effort trying to use ruby ββFFI to wrap the exported function from haskell and could never get it to all the links and run it.
If you look at the FFI haskell examples, you will see that they all include the C main () function. Since Ruby FFI does not (and cannot have) main (), this will not work. If you try without this, you will get strange link errors.
I can share what I have, ping me on freenode (cschneid) or twitter (BlurredWeasel).
Chris schneider
source share