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
a7c7caa8
Commit
a7c7caa8
authored
27 years ago
by
Simon Peyton Jones
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-04-14 12:26:11 by simonpj]
Fix error in Specialise.dictRhsFVs
parent
b322894f
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
+8
-0
8 additions, 0 deletions
ghc/compiler/specialise/Specialise.lhs
with
8 additions
and
0 deletions
ghc/compiler/specialise/Specialise.lhs
+
8
−
0
View file @
a7c7caa8
...
...
@@ -891,6 +891,9 @@ data UsageDetails
}
type DictBind = (DictVar, CoreExpr, TyVarSet, FreeDicts)
-- The FreeDicts are the free dictionaries (only)
-- of the RHS of the dictionary bindings
-- Similarly the TyVarSet
emptyUDs = MkUD { dict_binds = emptyBag, calls = emptyFM }
...
...
@@ -1109,6 +1112,11 @@ dictRhsFVs e
-- These case expressions are of the form
-- case d of { D a b c -> b }
go (Lam _ _) = emptyIdSet -- This can happen for a Functor "dict",
-- which is represented by the function
-- itself; but it won't have any further
-- dicts inside it. I hope.
go other = pprPanic "dictRhsFVs" (ppr e)
...
...
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