[Haskell-cafe] LambdaVM (was Re: Lambada and connecting Haskell to a Weblogic server)

Brian Alliet brian at brianweb.net
Thu Feb 15 15:27:21 EST 2007


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


More information about the Haskell-Cafe mailing list