#3455: Add a setting to change how Unicode encoding errors are handled
---------------------------------+------------------------------------------
Reporter: judahj | Owner:
Type: proposal | Status: new
Priority: normal | Milestone: Not GHC
Component: libraries/base | Version: 6.10.4
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonmar):
It looks like the main question here is whether the `IOError` should be
returned explicitly (as in your patch), or whether we should just catch
the exception. All things being equal, catching the exception would be
simpler, as it wouldn't require any changes in the codecs. Is there a
reason why you didn't do it that way? Perhaps because you want to be sure
that the exception is really an encoding error, and not some other kind of
exception? If that's the case, then we should introduce a new exception
for encoding errors (that's probably a good idea anyway).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3455#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs