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

[project @ 1999-11-29 17:34:14 by simonpj]

Make it so that a class decl generates default method decls
for every method, not just for the ones that the user supplies
default-methods for.

GHC will never call these default-default methods, because
when it finds an instance decl with no defn for a method,
*and* the class decl doesn't have a user-programmed default
method, it whips up a new default method for that instance
decl so that the error message is more informative than
the default-default method would be.

But Hugs isn't so smart, and wants to call something from
the class decl.

This change required fiddling with more than I expected.  Sigh.

Simon
parent 0f2ca589
No related merge requests found
Showing with 126 additions and 144 deletions
Loading
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