Re: [GHC] #5902: Cannot tell from an exception handler whether the exception was asynchronous

#5902: Cannot tell from an exception handler whether the exception was asynchronous -------------------------------------+------------------------------------ Reporter: simonmar | Owner: simonmar Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.4.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by simonmar): Just never catch `SomeException` unless you intend to re-throw it. If you're handling an exception, you always know which exception(s) you're handling, so you can use type-specific handlers. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/5902#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC