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
I would expect that running this will not run the error handler (it will not print "exception). But runnig it prints it
*Main> sh $ mainMenu'
mainMenu
prog1
will be catched
prog2
exception
prog2
***Exception: lll: createProcess: posix_spawnp: does not exist (No such file or directory)
Doing the same thing in the IO monad works as I expect
I'm on version 1.5.22
The text was updated successfully, but these errors were encountered:
Yeah, there's not a good way to fix this, short of removing the MonadCatch instance altogether.
What's happening is that whenever you catch something in Shell the exception handler is catching all exceptions that will ever be raised by that Shell, not just exceptions in the wrapped block.
I have the following code
I would expect that running this will not run the error handler (it will not print "exception). But runnig it prints it
Doing the same thing in the IO monad works as I expect
I'm on version 1.5.22
The text was updated successfully, but these errors were encountered: