Fix #9236 Error on read from closed handle
authorDavid Feuer <David.Feuer@gmail.com>
Thu, 30 Oct 2014 04:13:07 +0000 (23:13 -0500)
committerAustin Seipp <austin@well-typed.com>
Thu, 30 Oct 2014 04:13:08 +0000 (23:13 -0500)
commit257cbec2f605c31d335a6709b43754a88f184d9d
tree41e3ce7f687bac9666d5f894f1689dd99ae711a3
parent322810e32cb18d7749e255937437ff2ef99dca3f
Fix #9236 Error on read from closed handle

Summary:
Fixes #9236. My testing indicates that this does *not* lead to problems with
broken pipes and such, but further testing is required. It found
a bug in haddock; I've submitted a pull request upstream.

Reviewers: ekmett, austin

Reviewed By: ekmett, austin

Subscribers: rwbarton, thomie, carter, simonmar

Differential Revision: https://phabricator.haskell.org/D327

GHC Trac Issues: #9236
libraries/base/GHC/IO/Handle/Text.hs