You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a Haskell program that reports uncaught exceptions in stderr looks like this:
main::IO()
main = withJVM []$ handle (showException >=>Text.hPutStrLn stderr) the_program
The call to handle is cheap enough that it should be made inside of withJVM, making the default behavior the more chatty. Thus, the same behavior could be achieved with
main::IO()
main = withJVM [] the_program
If the programmer doesn't want to print uncaught exceptions, she can catch them before the_program returns.
The text was updated successfully, but these errors were encountered:
Currently, a Haskell program that reports uncaught exceptions in stderr looks like this:
The call to
handle
is cheap enough that it should be made inside ofwithJVM
, making the default behavior the more chatty. Thus, the same behavior could be achieved withIf the programmer doesn't want to print uncaught exceptions, she can catch them before
the_program
returns.The text was updated successfully, but these errors were encountered: