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,265
Issues
4,265
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
421
Merge Requests
421
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
1b12b2eb
Commit
1b12b2eb
authored
Jul 10, 2009
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some "warn-unused-do-bind" warnings where we want to ignore the value
parent
5480a97f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
libraries/base/Control/Concurrent.hs
libraries/base/Control/Concurrent.hs
+1
-1
libraries/base/Control/Concurrent/SampleVar.hs
libraries/base/Control/Concurrent/SampleVar.hs
+1
-1
libraries/base/GHC/IO/Handle.hs
libraries/base/GHC/IO/Handle.hs
+2
-2
libraries/base/System/Environment.hs
libraries/base/System/Environment.hs
+2
-1
No files found.
libraries/base/Control/Concurrent.hs
View file @
1b12b2eb
...
...
@@ -430,7 +430,7 @@ runInUnboundThread action = do
if
bound
then
do
mv
<-
newEmptyMVar
forkIO
(
Exception
.
try
action
>>=
putMVar
mv
)
_
<-
forkIO
(
Exception
.
try
action
>>=
putMVar
mv
)
takeMVar
mv
>>=
\
ei
->
case
ei
of
Left
exception
->
Exception
.
throw
(
exception
::
SomeException
)
Right
result
->
return
result
...
...
libraries/base/Control/Concurrent/SampleVar.hs
View file @
1b12b2eb
...
...
@@ -69,7 +69,7 @@ emptySampleVar :: SampleVar a -> IO ()
emptySampleVar
v
=
do
(
readers
,
var
)
<-
takeMVar
v
if
readers
>
0
then
do
takeMVar
var
_
<-
takeMVar
var
putMVar
v
(
0
,
var
)
else
putMVar
v
(
readers
,
var
)
...
...
libraries/base/GHC/IO/Handle.hs
View file @
1b12b2eb
...
...
@@ -147,7 +147,7 @@ hSetFileSize handle size =
hIsEOF
::
Handle
->
IO
Bool
hIsEOF
handle
=
catch
(
do
hLookAhead
handle
;
return
False
)
(
hLookAhead
handle
>>
return
False
)
(
\
e
->
if
isEOFError
e
then
return
True
else
ioError
e
)
-- ---------------------------------------------------------------------------
...
...
@@ -668,7 +668,7 @@ dupHandleTo filepath h other_side
case
cast
devTo
of
Nothing
->
ioe_dupHandlesNotCompatible
h
Just
dev'
->
do
IODevice
.
dup2
dev
dev'
_
<-
IODevice
.
dup2
dev
dev'
FileHandle
_
m
<-
dupHandle_
dev'
filepath
other_side
h_
mb_finalizer
takeMVar
m
...
...
libraries/base/System/Environment.hs
View file @
1b12b2eb
...
...
@@ -155,7 +155,8 @@ withArgv new_args act = do
pName
<-
System
.
Environment
.
getProgName
existing_args
<-
System
.
Environment
.
getArgs
bracket
(
setArgs
new_args
)
(
\
argv
->
do
setArgs
(
pName
:
existing_args
);
freeArgv
argv
)
(
\
argv
->
do
_
<-
setArgs
(
pName
:
existing_args
)
freeArgv
argv
)
(
const
act
)
freeArgv
::
Ptr
CString
->
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