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
Commits
a711607e
Commit
a711607e
authored
1 year ago
by
Hannes Siebenhandl
Browse files
Options
Downloads
Patches
Plain Diff
Adapt to `IfLclName` newtype changes
parent
5377ec40
No related branches found
Branches containing commit
No related tags found
1 merge request
!59
Add IfaceType deduplication table to interface file serialisation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
haddock-api/src/Haddock/Backends/Hyperlinker/Utils.hs
+3
-3
3 additions, 3 deletions
haddock-api/src/Haddock/Backends/Hyperlinker/Utils.hs
with
3 additions
and
3 deletions
haddock-api/src/Haddock/Backends/Hyperlinker/Utils.hs
+
3
−
3
View file @
a711607e
...
...
@@ -124,15 +124,15 @@ recoverFullIfaceTypes df flattened ast = fmap (printed A.!) ast
-- Unfold an 'HieType' whose subterms have already been unfolded
go
::
HieType
IfaceType
->
IfaceType
go
(
HTyVarTy
n
)
=
IfaceTyVar
(
getOccFS
n
)
go
(
HTyVarTy
n
)
=
IfaceTyVar
(
mkIfLclName
$
getOccFS
n
)
go
(
HAppTy
a
b
)
=
IfaceAppTy
a
(
hieToIfaceArgs
b
)
go
(
HLitTy
l
)
=
IfaceLitTy
l
go
(
HForAllTy
((
n
,
k
),
af
)
t
)
=
let
b
=
(
getOccFS
n
,
k
)
go
(
HForAllTy
((
n
,
k
),
af
)
t
)
=
let
b
=
(
mkIfLclName
$
getOccFS
n
,
k
)
in
IfaceForAllTy
(
Bndr
(
IfaceTvBndr
b
)
af
)
t
go
(
HFunTy
w
a
b
)
=
IfaceFunTy
(
visArg
TypeLike
)
w
a
b
-- t1 -> t2
go
(
HQualTy
con
b
)
=
IfaceFunTy
(
invisArg
TypeLike
)
many_ty
con
b
-- c => t
go
(
HCastTy
a
)
=
a
go
HCoercionTy
=
IfaceTyVar
"<coercion type>"
go
HCoercionTy
=
IfaceTyVar
$
mkIfLclName
"<coercion type>"
go
(
HTyConApp
a
xs
)
=
IfaceTyConApp
a
(
hieToIfaceArgs
xs
)
-- This isn't fully faithful - we can't produce the 'Inferred' case
...
...
This diff is collapsed.
Click to expand it.
Hannes Siebenhandl
@fendor
mentioned in commit
47b14dcc
·
10 months ago
mentioned in commit
47b14dcc
mentioned in commit 47b14dcc6952759e03c5d735c1dd3524590cc641
Toggle commit list
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