Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Sebastian Graf's avatar
    30037e6d
    PmCheck: Adjust recursion depth for inhabitation test · 30037e6d
    Sebastian Graf authored and Ben Gamari's avatar Ben Gamari committed
    In #17977, we ran into the reduction depth limit of the typechecker.
    That was only a symptom of a much broader issue: The recursion depth
    of the coverage checker for trying to instantiate strict fields in the
    `nonVoid` test was far too high (100, the `defaultMaxTcBound`).
    
    As a result, we were performing quite poorly on `T17977`.
    Short of a proper termination analysis to prove emptyness of a type,
    we just arbitrarily default to a much lower recursion limit of 3.
    
    Fixes #17977.
    
    (cherry picked from commit ed58d4fd)
    30037e6d
    History
    PmCheck: Adjust recursion depth for inhabitation test
    Sebastian Graf authored and Ben Gamari's avatar Ben Gamari committed
    In #17977, we ran into the reduction depth limit of the typechecker.
    That was only a symptom of a much broader issue: The recursion depth
    of the coverage checker for trying to instantiate strict fields in the
    `nonVoid` test was far too high (100, the `defaultMaxTcBound`).
    
    As a result, we were performing quite poorly on `T17977`.
    Short of a proper termination analysis to prove emptyness of a type,
    we just arbitrarily default to a much lower recursion limit of 3.
    
    Fixes #17977.
    
    (cherry picked from commit ed58d4fd)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.