
15 Feb
2007
15 Feb
'07
3:27 p.m.
On Thu, Feb 15, 2007 at 02:53:47PM -0500, Mark T.B. Carroll wrote:
Is it easy to create Haskell stubs (in the IO monad, presumably) for standard Java libraries so that your compiled-to-JVM Haskell code can easily use the usual Java APIs like Swing? One source of vexation for us is mapping between Java types and Haskell types.
Yep. Normal FFI style foreign imports work. foreign import jvm unsafe "java.lang.Character.isDigit" isDigit :: Int -> Bool -Brian