How to catch a haskell exception, which is thrown in a haskell callback function called by a c function?
How to catch a Haskell exception that is thrown in a Haskell callback function called by a C function?