Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
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
Model registry
Operate
Terraform modules
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
Gesh
GHC
Commits
56779b1c
Commit
56779b1c
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-09-30 07:54:05 by sof]
wibble
parent
23ceae42
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/typecheck/TcBinds.lhs
+9
-8
9 additions, 8 deletions
ghc/compiler/typecheck/TcBinds.lhs
with
9 additions
and
8 deletions
ghc/compiler/typecheck/TcBinds.lhs
+
9
−
8
View file @
56779b1c
...
@@ -337,16 +337,17 @@ tcBindWithSigs top_lvl binder_names mbind tc_ty_sigs is_rec prag_info_fn
...
@@ -337,16 +337,17 @@ tcBindWithSigs top_lvl binder_names mbind tc_ty_sigs is_rec prag_info_fn
mk_export binder_name mono_id zonked_mono_id_ty
mk_export binder_name mono_id zonked_mono_id_ty
= (tyvars, TcId (replaceIdInfo poly_id (prag_info_fn binder_name)), TcId mono_id)
= (tyvars, TcId (replaceIdInfo poly_id (prag_info_fn binder_name)), TcId mono_id)
where
where
(tyvars, poly_id) = case maybeSig tc_ty_sigs binder_name of
(tyvars, poly_id) =
Just (TySigInfo _ sig_poly_id sig_tyvars _ _ _) -> (sig_tyvars, sig_poly_id)
case maybeSig tc_ty_sigs binder_name of
Nothing -> (real_tyvars_to_gen_list, new_poly_id)
Just (TySigInfo _ sig_poly_id sig_tyvars _ _ _) -> (sig_tyvars, sig_poly_id)
Nothing -> (real_tyvars_to_gen_list, new_poly_id)
new_poly_id = mkUserId binder_name poly_ty
new_poly_id = mkUserId binder_name poly_ty
poly_ty = mkForAllTys real_tyvars_to_gen_list $ mkFunTys dict_tys
$
zonked_mono_id_ty
poly_ty = mkForAllTys real_tyvars_to_gen_list $ mkFunTys dict_tys zonked_mono_id_ty
-- It's important to build a fully-zonked poly_ty, because
-- It's important to build a fully-zonked poly_ty, because
-- we'll slurp out its free type variables when extending the
-- we'll slurp out its free type variables when extending the
-- local environment (tcExtendLocalValEnv); if it's not zonked
-- local environment (tcExtendLocalValEnv); if it's not zonked
-- it appears to have free tyvars that aren't actually free at all.
-- it appears to have free tyvars that aren't actually free at all.
in
in
-- BUILD RESULTS
-- BUILD RESULTS
...
...
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