Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,251
Issues
4,251
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
394
Merge Requests
394
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
20465167
Commit
20465167
authored
Dec 01, 2010
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a discarded exception in hClose
parent
0b73a8dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
libraries/base/GHC/IO/Handle.hs
libraries/base/GHC/IO/Handle.hs
+3
-6
No files found.
libraries/base/GHC/IO/Handle.hs
View file @
20465167
...
...
@@ -82,14 +82,11 @@ hClose h@(FileHandle _ m) = do
mb_exc
<-
hClose'
h
m
hClose_maybethrow
mb_exc
h
hClose
h
@
(
DuplexHandle
_
r
w
)
=
do
mb_exc1
<-
hClose'
h
w
mb_exc2
<-
hClose'
h
r
case
mb_exc1
of
Nothing
->
return
()
Just
e
->
hClose_maybethrow
mb_exc2
h
excs
<-
mapM
(
hClose'
h
)
[
r
,
w
]
hClose_maybethrow
(
listToMaybe
(
catMaybes
excs
))
h
hClose_maybethrow
::
Maybe
SomeException
->
Handle
->
IO
()
hClose_maybethrow
Nothing
h
=
return
()
hClose_maybethrow
Nothing
h
=
return
()
hClose_maybethrow
(
Just
e
)
h
=
hClose_rethrow
e
h
hClose_rethrow
::
SomeException
->
Handle
->
IO
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment