Commit ce209f1b authored by Simon Marlow's avatar Simon Marlow
Browse files

clarify exception-overriding behaviour of withFile

parent 25cccffc
......@@ -151,7 +151,9 @@ withFile\ ::\ FilePath\ ->\ IOMode\ ->\ (Handle\ ->\ IO\ r)\ ->\ IO\ r
\haddocktt{withFile\ name\ mode\ act} opens a file using \haddockid{openFile} and passes
the resulting handle to the computation \haddocktt{act}. The handle will be
closed on exit from \haddockid{withFile}, whether by normal termination or by
raising an exception.
raising an exception. If closing the handle raises an exception, then
this exception will be raised by \haddockid{withFile} rather than any exception
raised by \haddocktt{act}.
\par
\end{haddockdesc}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment