[Uhc-users] Getting started with the jscript backend

Sönke Hahn shahn at cs.tu-berlin.de
Fri Oct 21 00:26:21 CEST 2011


Hi!

I was trying out uhc to compile simple modules to javascript. I read a
blog post about the javascript foreign function interface ([1]) and
managed to compile a program, that would execute the 'alert'-function. But
I didn't manage to convert Haskell strings to javascript strings. The
blog post mentions 'stringToJSString', but I don't know, which module
that is in (or how to implement it myself).

Are there any code examples or any documentation that would help me get started?

Cheers,
Sönke

[1] http://utrechthaskellcompiler.wordpress.com/2010/10/29/a-haskell-ffi-calling-convention-for-javascript/


More information about the Uhc-users mailing list