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
89b0f544
Commit
89b0f544
authored
3 years ago
by
vdukhovni
Browse files
Options
Downloads
Patches
Plain Diff
Resolve non-exhaustive pattern match warnings
parent
f1e64178
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/ResourceLimit.hs
+6
-4
6 additions, 4 deletions
tests/ResourceLimit.hs
with
6 additions
and
4 deletions
tests/ResourceLimit.hs
+
6
−
4
View file @
89b0f544
...
@@ -10,7 +10,9 @@ main = do
...
@@ -10,7 +10,9 @@ main = do
setResourceLimit
ResourceCPUTime
setResourceLimit
ResourceCPUTime
(
ResourceLimits
(
ResourceLimit
soft
)
(
ResourceLimit
hard
))
(
ResourceLimits
(
ResourceLimit
soft
)
(
ResourceLimit
hard
))
r
<-
getResourceLimit
ResourceCPUTime
r
<-
getResourceLimit
ResourceCPUTime
let
(
ResourceLimit
s
)
=
softLimit
r
soft
@?=
case
softLimit
r
of
let
(
ResourceLimit
h
)
=
hardLimit
r
ResourceLimit
l
->
l
s
@?=
soft
_
->
0
h
@?=
hard
hard
@?=
case
hardLimit
r
of
ResourceLimit
l
->
l
_
->
0
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