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
bf9da9cd
Commit
bf9da9cd
authored
6 years ago
by
Alec Theriault
Browse files
Options
Downloads
Patches
Plain Diff
Handle promoted tuples in 'synifyType'
When we have a fully applied promoted tuple, we can expand it out properly.
parent
b4172717
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/Convert.hs
+4
-0
4 additions, 0 deletions
haddock-api/src/Haddock/Convert.hs
with
4 additions
and
0 deletions
haddock-api/src/Haddock/Convert.hs
+
4
−
0
View file @
bf9da9cd
...
...
@@ -458,6 +458,10 @@ synifyType _ (TyConApp tc tys)
UnboxedTuple
->
HsUnboxedTuple
)
(
map
(
synifyType
WithinType
)
vis_tys
)
|
isUnboxedSumTyCon
tc
=
noLoc
$
HsSumTy
noExt
(
map
(
synifyType
WithinType
)
vis_tys
)
|
Just
dc
<-
isPromotedDataCon_maybe
tc
,
isTupleDataCon
dc
,
dataConSourceArity
dc
==
length
vis_tys
=
noLoc
$
HsExplicitTupleTy
noExt
(
map
(
synifyType
WithinType
)
vis_tys
)
-- ditto for lists
|
getName
tc
==
listTyConName
,
[
ty
]
<-
tys
=
noLoc
$
HsListTy
noExt
(
synifyType
WithinType
ty
)
...
...
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