~/talk

Lower Your Guards: A Compositional Pattern-Match Coverage Checker

Talkat ICFP 2020 · 2020-08-23..08-26· [developer-experience]
links:none on file
links:none on file
slides:none on file

Pattern-match coverage checking becomes a desugaring to guard trees that reduce all patterns to three constructs, with two simple processors A and U producing annotated trees and a refinement-type uncovered set. Implemented in GHC, it fixes several of the 28 open tickets, handles exponential-case blowups (16 combos in an example) by bailing out sensibly, generates concrete inhabitants like Just True and Just False via an ad-hoc generator, and yields simpler, faster, and more accurate warnings.

AI-written summary · about

  1. 0:00Intro
  2. 1:17Pattern Match Warnings IRL
  3. 3:32Inhabitation and strict constructor fields
  4. 4:52Mixing pattern matching and pattern guards
  5. 7:04Desugar pattern matching to guard trees
  6. 10:18Example
  7. 10:52Computing the uncovered set
  8. 11:47Reporting uncovered patterns
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.