Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
haddock
Merge requests
!35
Check for puns (see
ghc#23368
)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Check for puns (see
ghc#23368
)
wip/int-index/check-puns
into
ghc-head
Overview
6
Commits
3
Pipelines
0
Changes
6
2 unresolved threads
Hide all comments
Merged
Vladislav Zavialov
requested to merge
wip/int-index/check-puns
into
ghc-head
2 years ago
Overview
6
Commits
3
Pipelines
0
Changes
6
2 unresolved threads
Hide all comments
Expand
Update the HTML backend to respect list and tuple puns.
Before
After
0
0
Merge request reports
Compare
ghc-head
version 3
1022212b
2 years ago
version 2
4d3572f0
2 years ago
version 1
79ec51ac
2 years ago
ghc-head (base)
and
latest version
latest version
5877bceb
3 commits,
2 years ago
version 3
1022212b
3 commits,
2 years ago
version 2
4d3572f0
1 commit,
2 years ago
version 1
79ec51ac
1 commit,
2 years ago
6 files
+
51
−
50
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
haddock-api/src/Haddock/Backends/Xhtml/Names.hs
+
10
−
2
Options
@@ -112,8 +112,16 @@ ppFullQualName notation mdl name = wrapInfix notation (getOccName name) qname
qname
=
toHtml
$
moduleString
mdl
++
'.'
:
getOccString
name
ppName
::
Notation
->
Name
->
Html
ppName
notation
name
=
wrapInfix
notation
(
getOccName
name
)
$
toHtml
(
getOccString
name
)
ppName
notation
name
=
case
m_pun
of
Just
str
->
toHtml
(
unpackFS
str
)
-- use the punned form
Nothing
->
wrapInfix
notation
(
getOccName
name
)
$
toHtml
(
getOccString
name
)
-- use the original identifier
where
m_pun
=
case
notation
of
Raw
->
namePun_maybe
name
Prefix
->
namePun_maybe
name
Infix
->
Nothing
ppBinder
::
Bool
->
OccName
->
Html
ppBinder
=
ppBinderWith
Prefix
Loading