~/talk

GHC's Renamer

links:none on file
slides:none on file

Overview of GHC’s renamer, its key datatypes and a live bugfix: the renamer resolves OccName/RdrName/Name and builds the GlobalRdrEnv, then must decide if a do-pattern is irrefutable via isIrrefutableHsPat. The demo traces a MonadFail error caused by pattern-synonym and complete-pragma handling, uses HLS to navigate the codebase, adds renamer-level complete-match tracking (tcg_complete_matches) and tweaks desugaring to emit a runtime pattern-failure instead of demanding MonadFail. The patch compiles and changes behavior but raises design choices and follow-up tests.

AI-written summary · about

  1. 0:00GHC's renamer intro
  2. 1:12Renamer key tasks
  3. 3:01OccName and namespaces
  4. 5:13Unique identifiers in renamer
  5. 7:07RdrName role
  6. 9:18Variables in GHC
  7. 11:25Trees that Grow and Var
  8. 16:07TyThing info needs
  9. 19:27GlobalRdrEnv scoping
  10. 24:11Renamer and type checker
  11. 27:08Record update example
  12. 37:23Renamer processing
  13. 41:22Bug fixing intro
  14. 43:58MonadFail constraint issue
  15. 48:20Where MonadFail emitted
  16. 51:16Pattern data types limits
  17. 57:07Complete pragmas and synonyms
  18. 1:01:29Accumulating complete matches
  19. 1:08:23Updating isIrrefutableHsPat
  20. 1:11:24Testing fix and new issues
  21. 1:17:09Handling pattern failures
  22. 1:23:04Impact on user programs
  23. 1:27:22Renamer and do notation
  24. 1:31:00Future renamer improvements
  25. 1:34:09Disambiguating record updates
  26. 1:36:41Closing remarks
~/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.