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
c3b98e88
Commit
c3b98e88
authored
26 years ago
by
Simon Peyton Jones
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-06-24 11:28:06 by simonpj]
Specialiser for rec bindings
parent
13670599
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/specialise/Specialise.lhs
+9
-2
9 additions, 2 deletions
ghc/compiler/specialise/Specialise.lhs
with
9 additions
and
2 deletions
ghc/compiler/specialise/Specialise.lhs
+
9
−
2
View file @
c3b98e88
...
...
@@ -746,9 +746,16 @@ specBind (Rec pairs) body_uds
(body_uds `plusUDs` spec_uds)
-- See notes for non-rec case
new_bind = Rec (spec_defns ++ pairs')
new_bind = Rec (spec_defns ++
pairs' ++
[(d,r) | (d,r,_,_) <- dict_binds])
-- We need to Rec together the dict_binds too, because they
-- can be recursive; this happens when an overloaded function
-- is used as a method in an instance declaration.
-- (The particular program that showed this up was
-- docon/source/auxil/DInteger.hs)
in
returnSM ( new_bind
: mkDictBinds dict_binds
, all_uds )
returnSM (
[
new_bind
]
, all_uds )
specDefn :: CallDetails -- Info on how it is used in its scope
-> (Id, CoreExpr) -- The thing being bound and its un-processed RHS
...
...
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