Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
753e3e38
Commit
753e3e38
authored
Jan 12, 2013
by
Ian Lynagh
Browse files
Fix ambiguity error on Windows
I assume that we only want to catch IOExceptions, as withThread does.
parent
f54bc5f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/base/Control/Concurrent.hs
View file @
753e3e38
...
...
@@ -466,7 +466,7 @@ threadWaitReadSTM fd
case
result
of
Nothing
->
retry
Just
(
Right
()
)
->
return
()
Just
(
Left
e
)
->
throwSTM
e
Just
(
Left
e
)
->
throwSTM
(
e
::
IOException
)
let
killAction
=
return
()
return
(
waitAction
,
killAction
)
|
otherwise
=
error
"threadWaitReadSTM requires -threaded on Windows"
...
...
@@ -488,7 +488,7 @@ threadWaitWriteSTM fd
case
result
of
Nothing
->
retry
Just
(
Right
()
)
->
return
()
Just
(
Left
e
)
->
throwSTM
e
Just
(
Left
e
)
->
throwSTM
(
e
::
IOException
)
let
killAction
=
return
()
return
(
waitAction
,
killAction
)
|
otherwise
=
error
"threadWaitWriteSTM requires -threaded on Windows"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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