#3517: GHC has lots of extra hidden IOErrorType values
---------------------------------+------------------------------------------
    Reporter:  duncan            |        Owner:              
        Type:  bug               |       Status:  new         
    Priority:  normal            |    Milestone:  7.0.1       
   Component:  libraries/base    |      Version:              
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by duncan):

  * failure:  => None/Unknown


Comment:

 I've run into this again. `Distribution.TestSuite` needs access to
 `IOErrorType(Interrupted)` because it needs to catch all errors that a
 test might throw (so it can report how it failed) but we do not want to
 catch ^C, so we have to test for `Interrupted` and rethrow in that case.
 It's not reasonable that doing so means we have to write non-portable
 code.

 So what is the solution? That we make IOException a subclass of Exception
 with the current fields that the IOException record has, then make all the
 various IOErrorTypes into new types that are instances of the new
 `IOException` class?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3517#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to