~/talk

Suggesting Valid Substitutions For Typed Holes

Talkat Lambda Days 2018 · 2018-02-22..02-23· [developer-experience]
slides:none on file

Extension accepted into GHC that uses the compiler’s typechecker to list actual identifiers and multi-argument constructions that fit a hole, not vague examples; it ranks suggestions by subsumption checking so exact and more general fits surface first, and it offers refinement substitutions (searching for small applied expressions) controllable by a flag. Demos show it typechecks lens and DCC examples, handles type families and advanced features, and the implementation ships on GHC 8.4 with further refinements on the 8.6 line.

AI-written summary · about

  1. 0:00What are Valid Substitutions?
  2. 9:38Refinement Substitutions
  3. 23:32Constraints Demo
  4. 33:37Conclusion
  5. 36:42Sorting the Output
~/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.