Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Ryan Scott
haddock
Commits
60aa88ef
Commit
60aa88ef
authored
10 years ago
by
thoughtpolice
Browse files
Options
Downloads
Patches
Plain Diff
GHC 7.8: follow changes in PatSyn and LHsBindsLR
Signed-off-by:
Austin Seipp
<
aseipp@pobox.com
>
parent
32c6be75
Branches
v2.14
Branches containing commit
Tags
haddock-2.14.3-release
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Haddock/Convert.hs
+2
-2
2 additions, 2 deletions
src/Haddock/Convert.hs
src/Haddock/Interface/Create.hs
+8
-8
8 additions, 8 deletions
src/Haddock/Interface/Create.hs
with
10 additions
and
10 deletions
src/Haddock/Convert.hs
+
2
−
2
View file @
60aa88ef
...
...
@@ -94,10 +94,10 @@ tyThingToLHsDecl t = noLoc $ case t of
(
synifyType
ImplicitizeForAll
(
dataConUserType
dc
)))
AConLike
(
PatSynCon
ps
)
->
let
(
_
,
_
,
(
req_theta
,
prov_theta
)
)
=
patSynSig
ps
let
(
_
,
_
,
req_theta
,
prov_theta
,
_
,
res_ty
)
=
patSynSig
ps
in
SigD
$
PatSynSig
(
synifyName
ps
)
(
fmap
(
synifyType
WithinType
)
(
patSynTyDetails
ps
))
(
synifyType
WithinType
(
patSynType
ps
)
)
(
synifyType
WithinType
res_ty
)
(
synifyCtx
req_theta
)
(
synifyCtx
prov_theta
)
...
...
This diff is collapsed.
Click to expand it.
src/Haddock/Interface/Create.hs
+
8
−
8
View file @
60aa88ef
...
...
@@ -364,7 +364,7 @@ classDecls class_ = filterDecls . collectDocs . sortByLoc $ decls
where
decls
=
docs
++
defs
++
sigs
++
ats
docs
=
mkDecls
tcdDocs
DocD
class_
defs
=
mkDecls
(
map
snd
.
bagToList
.
tcdMeths
)
ValD
class_
defs
=
mkDecls
(
bagToList
.
tcdMeths
)
ValD
class_
sigs
=
mkDecls
tcdSigs
SigD
class_
ats
=
mkDecls
tcdATs
(
TyClD
.
FamDecl
)
class_
...
...
@@ -384,13 +384,13 @@ mkFixMap group_ = M.fromList [ (n,f)
ungroup
::
HsGroup
Name
->
[
LHsDecl
Name
]
ungroup
group_
=
mkDecls
(
tyClGroupConcat
.
hs_tyclds
)
TyClD
group_
++
mkDecls
hs_derivds
DerivD
group_
++
mkDecls
hs_defds
DefD
group_
++
mkDecls
hs_fords
ForD
group_
++
mkDecls
hs_docs
DocD
group_
++
mkDecls
hs_instds
InstD
group_
++
mkDecls
(
typesigs
.
hs_valds
)
SigD
group_
++
mkDecls
(
map
snd
.
valbinds
.
hs_valds
)
ValD
group_
mkDecls
hs_derivds
DerivD
group_
++
mkDecls
hs_defds
DefD
group_
++
mkDecls
hs_fords
ForD
group_
++
mkDecls
hs_docs
DocD
group_
++
mkDecls
hs_instds
InstD
group_
++
mkDecls
(
typesigs
.
hs_valds
)
SigD
group_
++
mkDecls
(
valbinds
.
hs_valds
)
ValD
group_
where
typesigs
(
ValBindsOut
_
sigs
)
=
filter
isVanillaLSig
sigs
typesigs
_
=
error
"expected ValBindsOut"
...
...
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