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
4f249c9b
Commit
4f249c9b
authored
8 years ago
by
Richard Eisenberg
Committed by
Ben Gamari
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update Haddock w.r.t. new HsImplicitBndrs
parent
db13d5f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
haddock-api/src/Haddock/Convert.hs
+3
-2
3 additions, 2 deletions
haddock-api/src/Haddock/Convert.hs
haddock-api/src/Haddock/Interface/Rename.hs
+2
-1
2 additions, 1 deletion
haddock-api/src/Haddock/Interface/Rename.hs
with
5 additions
and
3 deletions
haddock-api/src/Haddock/Convert.hs
+
3
−
2
View file @
4f249c9b
...
...
@@ -114,7 +114,8 @@ synifyAxBranch tc (CoAxBranch { cab_tvs = tkvs, cab_lhs = args, cab_rhs = rhs })
hs_rhs
=
synifyType
WithinType
rhs
in
TyFamEqn
{
tfe_tycon
=
name
,
tfe_pats
=
HsIB
{
hsib_body
=
typats
,
hsib_vars
=
map
tyVarName
tkvs
}
,
hsib_vars
=
map
tyVarName
tkvs
,
hsib_closed
=
True
}
,
tfe_fixity
=
Prefix
,
tfe_rhs
=
hs_rhs
}
...
...
@@ -300,7 +301,7 @@ synifyDataCon use_gadt_syntax dc =
(
False
,
True
)
->
case
linear_tys
of
[
a
,
b
]
->
return
$
InfixCon
a
b
_
->
Left
"synifyDataCon: infix with non-2 args?"
gadt_ty
=
HsIB
[]
(
synifyType
WithinType
res_ty
)
gadt_ty
=
HsIB
[]
(
synifyType
WithinType
res_ty
)
False
-- finally we get synifyDataCon's result!
in
hs_arg_tys
>>=
\
hat
->
...
...
This diff is collapsed.
Click to expand it.
haddock-api/src/Haddock/Interface/Rename.hs
+
2
−
1
View file @
4f249c9b
...
...
@@ -577,7 +577,8 @@ renameImplicit :: (in_thing -> RnM out_thing)
renameImplicit
rn_thing
(
HsIB
{
hsib_body
=
thing
})
=
do
{
thing'
<-
rn_thing
thing
;
return
(
HsIB
{
hsib_body
=
thing'
,
hsib_vars
=
PlaceHolder
})
}
,
hsib_vars
=
PlaceHolder
,
hsib_closed
=
PlaceHolder
})
}
renameWc
::
(
in_thing
->
RnM
out_thing
)
->
HsWildCardBndrs
Name
in_thing
...
...
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