[GHC] #3455: Add a setting to change how Unicode encoding
errors are handled
GHC
trac at galois.com
Mon Aug 24 07:46:15 EDT 2009
#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
More information about the Glasgow-haskell-bugs
mailing list