Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghc-debug
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ghc-debug
Commits
9943c7bf
Commit
9943c7bf
authored
5 years ago
by
Ben Gamari
Browse files
Options
Downloads
Patches
Plain Diff
Refactor StackClosure
parent
7158dcde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/src/GHC/Debug/Types/Closures.hs
+2
-3
2 additions, 3 deletions
common/src/GHC/Debug/Types/Closures.hs
with
2 additions
and
3 deletions
common/src/GHC/Debug/Types/Closures.hs
+
2
−
3
View file @
9943c7bf
...
...
@@ -231,8 +231,7 @@ data DebugClosure string s b
{
info
::
!
StgInfoTable
,
size
::
!
HalfWord
,
dirty
::
!
HalfWord
,
stackPointer
::
!
s
,
stack
::
[
Word
]
,
stack
::
!
s
}
|
WeakClosure
...
...
@@ -378,7 +377,7 @@ instance Tritraversable DebugClosure where
BlockingQueueClosure
a1
b1
b2
b3
b4
->
BlockingQueueClosure
a1
<$>
g
b1
<*>
g
b2
<*>
g
b3
<*>
g
b4
TSOClosure
a1
b
->
TSOClosure
a1
<$>
g
b
StackClosure
a1
a2
a3
s1
ss
->
StackClosure
a1
a2
a3
<$>
f
s1
<*>
pure
ss
StackClosure
a1
a2
a3
s1
->
StackClosure
a1
a2
a3
<$>
f
s1
WeakClosure
a1
a2
a3
a4
a5
a6
->
WeakClosure
a1
<$>
g
a2
<*>
g
a3
<*>
g
a4
<*>
g
a5
<*>
traverse
g
a6
IntClosure
p
i
->
pure
(
IntClosure
p
i
)
...
...
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