#2699: broken pipe errors are too noisy
---------------------------------+------------------------------------------
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12 branch
Component: Runtime System | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by int-e):
So I gave this a try -- see the attachment. (The attachment is a shell
script, because the changes span several packages, and I wanted the result
to be readable and easy to apply.)
There are several places in the libraries where {{{IOError}}} isn't used
abstractly. My approach was to replace the constructor uses by a
combination of {{{mkIOError}}} and {{{ioeSetErrorString}}}. The idea is
that this way, the code should continue to work with {{{ghc-6.10.1}}} and
also survive future changes to the {{{IOError}}} type, without adding more
{{{#ifdef}}} clutter.
Does this approach seem reasonable?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2699#comment:4>
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