Skip to content
  • Simon Peyton Jones's avatar
    Fix Trac #1061: refactor handling of default methods · 24f3ffda
    Simon Peyton Jones authored
    In an instance declaration, omitted methods get a definition that
    uses the default method.  We used to generate source code and feed it
    to the type checker.  But tc199 shows that is a bad idea -- see
    Note [Default methods in instances] in TcClassDcl.
    
    So this patch refactors to insteadl all us to generate the 
    *post* typechecked code directly for default methods.
    24f3ffda