Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • sheaf's avatar
    a975c663
    Use unsatisfiable for missing methods w/ defaults · a975c663
    sheaf authored and Marge Bot's avatar Marge Bot committed
    When a class instance has an Unsatisfiable constraint in its context
    and the user has not explicitly provided an implementation of a method,
    we now always provide a RHS of the form `unsatisfiable @msg`, even
    if the method has a default definition available. This ensures that,
    when deferring type errors, users get the appropriate error message
    instead of a possible runtime loop, if class default methods were
    defined recursively.
    
    Fixes #23816
    a975c663
    History
    Use unsatisfiable for missing methods w/ defaults
    sheaf authored and Marge Bot's avatar Marge Bot committed
    When a class instance has an Unsatisfiable constraint in its context
    and the user has not explicitly provided an implementation of a method,
    we now always provide a RHS of the form `unsatisfiable @msg`, even
    if the method has a default definition available. This ensures that,
    when deferring type errors, users get the appropriate error message
    instead of a possible runtime loop, if class default methods were
    defined recursively.
    
    Fixes #23816
Code owners
Assign users and groups as approvers for specific file changes. Learn more.