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
7a589de3
Commit
7a589de3
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-05-18 04:59:19 by sof]
Updated for new PP
parent
cda2ef4f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/utils/Bag.lhs
+4
-4
4 additions, 4 deletions
ghc/compiler/utils/Bag.lhs
with
4 additions
and
4 deletions
ghc/compiler/utils/Bag.lhs
+
4
−
4
View file @
7a589de3
...
...
@@ -25,7 +25,7 @@ module Bag (
IMP_Ubiq(){-uitous-}
IMPORT_1_3(List(partition))
import Outputable ( interpp'SP )
import Outputable
--
( interpp'SP )
import Pretty
#else
import List(partition)
...
...
@@ -161,11 +161,11 @@ bagToList b = foldrBag (:) [] b
#ifdef COMPILING_GHC
instance (Outputable a) => Outputable (Bag a) where
ppr sty EmptyBag = p
pPStr
SLIT("emptyBag")
ppr sty EmptyBag = p
text
SLIT("emptyBag")
ppr sty (UnitBag a) = ppr sty a
ppr sty (TwoBags b1 b2) =
ppCat
[ppr sty b1
, pp'SP
, ppr sty b2]
ppr sty (TwoBags b1 b2) =
hsep
[ppr sty b1
<> comma
, ppr sty b2]
ppr sty (ListBag as) = interpp'SP sty as
ppr sty (ListOfBags bs) =
ppCat [ppLbrack,
interpp'SP sty bs
, ppRbrack]
ppr sty (ListOfBags bs) =
brackets (
interpp'SP sty bs
)
#endif {- COMPILING_GHC -}
\end{code}
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