Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d8a9b534
Commit
d8a9b534
authored
Jun 18, 2002
by
simonpj
Browse files
[project @ 2002-06-18 14:00:07 by simonpj]
Comments only
parent
7fc965c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/typecheck/TcInstDcls.lhs
View file @
d8a9b534
...
...
@@ -648,6 +648,8 @@ tcInstDecl2 (InstInfo { iDFunId = dfun_id, iBinds = monobinds, iPrags = uprags }
main_bind `AndMonoBinds` prag_binds `AndMonoBinds` sc_binds_outer)
\end{code}
Superclass loops
~~~~~~~~~~~~~~~~
We have to be very, very careful when generating superclasses, lest we
accidentally build a loop. Here's an example:
...
...
@@ -699,6 +701,7 @@ tcSuperClasses inst_tyvars' dfun_arg_dicts sc_dicts
-- We must simplify this all the way down
-- lest we build superclass loops
-- See notes about superclass loops above
tcSimplifyTop sc_lie `thenTc` \ sc_binds2 ->
returnTc (zonked_inst_tyvars, sc_binds1, sc_binds2)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment