Prevent Haskell exceptions from escaping apply.
Prevent Haskell exceptions from escaping apply.

If the exception is not caught, undefined behavior ensues, according to
the Haskell report.

This patch sends JVMExceptions to the JVM with Foreign.JNI.Throw.
Other exceptions are sent to the JVM in string form.

tweag/sparkle,tweag/sparkle