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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Glasgow Haskell Compiler
haddock
Merge requests
!16
Class layout info
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Class layout info
wip/class-layout-info
into
ghc-head
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Vladislav Zavialov
requested to merge
wip/class-layout-info
into
ghc-head
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
companion to
ghc!9018 (merged)
0
0
Merge request reports
Compare
ghc-head
ghc-head (base)
and
latest version
latest version
9bede936
1 commit,
2 years ago
2 files
+
12
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
haddock-api/src/Haddock/Interface/Rename.hs
+
11
−
3
Options
@@ -428,7 +428,8 @@ renameTyClD d = case d of
return
(
DataDecl
{
tcdDExt
=
noExtField
,
tcdLName
=
lname'
,
tcdTyVars
=
tyvars'
,
tcdFixity
=
fixity
,
tcdDataDefn
=
defn'
})
ClassDecl
{
tcdCtxt
=
lcontext
,
tcdLName
=
lname
,
tcdTyVars
=
ltyvars
,
tcdFixity
=
fixity
ClassDecl
{
tcdLayout
=
layout
,
tcdCtxt
=
lcontext
,
tcdLName
=
lname
,
tcdTyVars
=
ltyvars
,
tcdFixity
=
fixity
,
tcdFDs
=
lfundeps
,
tcdSigs
=
lsigs
,
tcdATs
=
ats
,
tcdATDefs
=
at_defs
}
->
do
lcontext'
<-
traverse
renameLContext
lcontext
lname'
<-
renameL
lname
@@ -438,10 +439,12 @@ renameTyClD d = case d of
ats'
<-
mapM
(
renameLThing
renameFamilyDecl
)
ats
at_defs'
<-
mapM
(
mapM
renameTyFamDefltD
)
at_defs
-- we don't need the default methods or the already collected doc entities
return
(
ClassDecl
{
tcdCtxt
=
lcontext'
,
tcdLName
=
lname'
,
tcdTyVars
=
ltyvars'
return
(
ClassDecl
{
tcdCExt
=
noExtField
,
tcdLayout
=
renameLayoutInfo
layout
,
tcdCtxt
=
lcontext'
,
tcdLName
=
lname'
,
tcdTyVars
=
ltyvars'
,
tcdFixity
=
fixity
,
tcdFDs
=
lfundeps'
,
tcdSigs
=
lsigs'
,
tcdMeths
=
emptyBag
,
tcdATs
=
ats'
,
tcdATDefs
=
at_defs'
,
tcdDocs
=
[]
,
tcdCExt
=
noExtField
})
,
tcdATs
=
ats'
,
tcdATDefs
=
at_defs'
,
tcdDocs
=
[]
})
where
renameLFunDep
::
LHsFunDep
GhcRn
->
RnM
(
LHsFunDep
DocNameI
)
@@ -452,6 +455,11 @@ renameTyClD d = case d of
renameLSig
(
L
loc
sig
)
=
return
.
L
(
locA
loc
)
=<<
renameSig
sig
renameLayoutInfo
::
LayoutInfo
GhcRn
->
LayoutInfo
DocNameI
renameLayoutInfo
(
ExplicitBraces
ob
cb
)
=
ExplicitBraces
ob
cb
renameLayoutInfo
(
VirtualBraces
n
)
=
VirtualBraces
n
renameLayoutInfo
NoLayoutInfo
=
NoLayoutInfo
renameFamilyDecl
::
FamilyDecl
GhcRn
->
RnM
(
FamilyDecl
DocNameI
)
renameFamilyDecl
(
FamilyDecl
{
fdInfo
=
info
,
fdLName
=
lname
,
fdTyVars
=
ltyvars
Loading