Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Model registry
Operate
Terraform modules
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
Gesh
GHC
Commits
2ede6449
Commit
2ede6449
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-08-14 11:43:48 by sof]
wibble
parent
e79ec9ed
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/absCSyn/HeapOffs.lhs
+2
-2
2 additions, 2 deletions
ghc/compiler/absCSyn/HeapOffs.lhs
with
2 additions
and
2 deletions
ghc/compiler/absCSyn/HeapOffs.lhs
+
2
−
2
View file @
2ede6449
...
@@ -304,7 +304,7 @@ pprHeapOffsetPieces int_offs fxdhdr_offs varhdr_offs tothdr_offs
...
@@ -304,7 +304,7 @@ pprHeapOffsetPieces int_offs fxdhdr_offs varhdr_offs tothdr_offs
else if fxdhdr_offs _EQ_ ILIT(1) then
else if fxdhdr_offs _EQ_ ILIT(1) then
Just (ptext SLIT("_FHS"))
Just (ptext SLIT("_FHS"))
else
else
Just (hcat [
char '('
, ptext SLIT("_FHS*"), int IBOX(fxdhdr_offs),
char ')'
])
Just (hcat [
text "("
, ptext SLIT("_FHS*"), int IBOX(fxdhdr_offs),
text ")"
])
pp_varhdr_offs = pp_hdrs (ptext SLIT("_VHS")) varhdr_offs
pp_varhdr_offs = pp_hdrs (ptext SLIT("_VHS")) varhdr_offs
...
@@ -313,7 +313,7 @@ pprHeapOffsetPieces int_offs fxdhdr_offs varhdr_offs tothdr_offs
...
@@ -313,7 +313,7 @@ pprHeapOffsetPieces int_offs fxdhdr_offs varhdr_offs tothdr_offs
case (catMaybes [pp_tothdr_offs, pp_varhdr_offs, pp_fxdhdr_offs, pp_int_offs]) of
case (catMaybes [pp_tothdr_offs, pp_varhdr_offs, pp_fxdhdr_offs, pp_int_offs]) of
[] -> char '0'
[] -> char '0'
[pp] -> pp -- Each blob is parenthesised if necessary
[pp] -> pp -- Each blob is parenthesised if necessary
pps ->
parens
(hcat (punctuate (char '+') pps))
pps ->
text "(" <>
(hcat (punctuate (char '+') pps))
<> text ")"
where
where
pp_hdrs hdr_pp [] = Nothing
pp_hdrs hdr_pp [] = Nothing
pp_hdrs hdr_pp [SMRI(rep, n)] | n _EQ_ ILIT(1) = Just ((<>) (text (show rep)) hdr_pp)
pp_hdrs hdr_pp [SMRI(rep, n)] | n _EQ_ ILIT(1) = Just ((<>) (text (show rep)) hdr_pp)
...
...
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