Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
1019 commits behind, 1 commit ahead of the upstream repository.
sheaf's avatar
sheaf authored
This commit modifies GHC.HsToCore.Pmc.Solver.generateInhabitingPatterns
to prioritise reporting COMPLETE sets in which all of the ConLikes
are in scope. This avoids suggesting out of scope constructors
when displaying an incomplete pattern match warning, e.g. in

  baz :: Ordering -> Int
  baz = \case
    EQ -> 5

we prefer:

  Patterns of type 'Ordering' not matched:
      LT
      GT

over:

  Patterns of type 'Ordering' not matched:
      OutOfScope

Fixes #25115
8f5dea3e
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.