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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Stephen Judkins
haddock
Commits
59d80974
Commit
59d80974
authored
9 years ago
by
Łukasz Hanuszczak
Committed by
Mateusz Kowalczyk
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make specialized methods be nicely formatted again.
parent
b4a82b39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
+8
-4
8 additions, 4 deletions
haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
with
8 additions
and
4 deletions
haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
+
8
−
4
View file @
59d80974
...
...
@@ -223,10 +223,14 @@ ppTyName :: Name -> Html
ppTyName
=
ppName
Prefix
ppSimpleSig
::
Unicode
->
Qualification
->
[
DocName
]
->
HsType
DocName
->
Html
ppSimpleSig
unicode
qual
names
typ
=
ppTypeSig
True
occNames
ppTyp
unicode
ppSimpleSig
::
LinksInfo
->
Splice
->
Unicode
->
Qualification
->
[
DocName
]
->
HsType
DocName
->
Html
ppSimpleSig
links
splice
unicode
qual
names
typ
=
topDeclElem'
names
$
ppTypeSig
True
occNames
ppTyp
unicode
where
-- TODO: Use *helpful* source span.
topDeclElem'
=
topDeclElem
links
(
UnhelpfulSpan
undefined
)
splice
ppTyp
=
ppType
unicode
qual
typ
occNames
=
map
getOccName
names
...
...
@@ -550,7 +554,7 @@ ppInstanceSigs links splice unicode qual (InstSpec {..}) (InstHead {..}) = do
TypeSig
lnames
(
L
sspan
typ
)
_
<-
ispecSigs
let
names
=
map
unLoc
lnames
let
typ'
=
rename'
.
sugar
$
specializeTyVarBndrs
ispecTyVars
ihdTypes
typ
return
$
ppSimpleSig
unicode
qual
names
typ'
return
$
ppSimpleSig
links
splice
unicode
qual
names
typ'
where
fv
=
foldr
Set
.
union
Set
.
empty
.
map
freeVariables
$
ihdTypes
rename'
=
rename
fv
...
...
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