Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
unix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
unix
Commits
cd4fb516
Commit
cd4fb516
authored
13 years ago
by
Ian Lynagh
Browse files
Options
Downloads
Patches
Plain Diff
Follow the removal of the Eq superclass of Num
parent
f55638fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
System/Posix/Error.hs
+4
-2
4 additions, 2 deletions
System/Posix/Error.hs
with
4 additions
and
2 deletions
System/Posix/Error.hs
+
4
−
2
View file @
cd4fb516
...
...
@@ -31,11 +31,13 @@ module System.Posix.Error (
import
Foreign
import
Foreign.C
throwErrnoPathIfMinus1Retry
::
Num
a
=>
String
->
FilePath
->
IO
a
->
IO
a
throwErrnoPathIfMinus1Retry
::
(
Eq
a
,
Num
a
)
=>
String
->
FilePath
->
IO
a
->
IO
a
throwErrnoPathIfMinus1Retry
loc
path
f
=
throwErrnoPathIfRetry
(
==
-
1
)
loc
path
f
throwErrnoPathIfMinus1Retry_
::
Num
a
=>
String
->
FilePath
->
IO
a
->
IO
()
throwErrnoPathIfMinus1Retry_
::
(
Eq
a
,
Num
a
)
=>
String
->
FilePath
->
IO
a
->
IO
()
throwErrnoPathIfMinus1Retry_
loc
path
f
=
void
$
throwErrnoPathIfRetry
(
==
-
1
)
loc
path
f
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment