
31 Jul
2011
31 Jul
'11
11:08 p.m.
On Sun, Jul 31, 2011 at 11:33 PM, Niklas Larsson
I m not GHC developer but wouldn't JVM LLVM backend be sufficient? Since new GHC AFAIK uses LLVM then it would allow compiling Haskell to LLVM and LLVM to JVM.
The hard part wouldn't be the code generation, but the interop with the class libraries, finding a workable way to use Java classes from Haskell and exporting Haskell code masquerading as Java classes.
I personally would be very happy to just get Haskell code to run in the JVM, forgetting entirely about interop. It would greatly reduce barrier-to-entry when trying to send Haskell code to clients. Michael