Hi guys!
Sorry for this question but I am still a complete Haskell and Haste beginner.
So im trying to call a JS function I have and pass in a Record as a parameter.
As I understand Haste should be able to transform the Record into a JS object right?
Sadly it doesn't work, I get the error:
No instance for (ToAny Figure) arising from a use of `ffi'
In the expression: ffi "(function(x) {renderGame(x); return 5;})"
In an equation for `render':
render = ffi "(function(x) {renderGame(x); return 5;})"
Hope someone can help :)