Skip to content
Snippets Groups Projects
Commit a7c7caa8 authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

[project @ 1998-04-14 12:26:11 by simonpj]

Fix error in Specialise.dictRhsFVs
parent b322894f
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment