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
3ba68781
Commit
3ba68781
authored
27 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-10-03 12:32:01 by simonm]
omit qualifiers by default when printing types
parent
043e1ef9
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/basicTypes/Name.lhs
+7
-2
7 additions, 2 deletions
ghc/compiler/basicTypes/Name.lhs
with
7 additions
and
2 deletions
ghc/compiler/basicTypes/Name.lhs
+
7
−
2
View file @
3ba68781
...
...
@@ -461,14 +461,19 @@ instance Outputable Name where
= hcat [pp_mod_dot, ptext (occNameString n), pp_debug sty name]
where
pp_mod = pprModule (PprForUser 1) m
pp_mod_dot = case prov of --- Omit home module qualifier
pp_mod_dot | userStyle sty -- Omit qualifier in user style
= empty
| otherwise
= case prov of -- Omit home module qualifier
LocalDef _ _ -> empty
Imported _ _ hif -> pp_mod <> pp_dot hif
Implicit hif -> pp_mod <> pp_dot hif
other -> pp_mod <> text "."
pp_dot HiFile = text "." -- Vanilla case
pp_dot HiBootFile = text "!" -- M!t indicates a name imported from a .hi-boot interface
pp_dot HiBootFile = text "!" -- M!t indicates a name imported from
-- a .hi-boot interface
pp_debug PprDebug (Global uniq m n prov) = hcat [text "{-", pprUnique uniq, char ',',
...
...
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