Error Message Annotation Plugins for Haskell
summary
Proposes a custom-error plugin interface for GHC that detects emitted type errors and either annotates or replaces them at pretty-print time, implemented in-production inside Damlc with about 100 lines of compiler-facing code; plugins run opt-in, stackable, and can fetch blurbs, hide library internals (lens examples), or add Elm‑like hints. Claims: minimal GHC changes, full access to typechecker context during rewrite, and practical utility shown by working examples and a small implementation.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:08Type error message goals
- 5:43Existing approaches limits
- 10:43GHC plugin interface
- 12:31Plugin implementation
- 15:22Plugin use cases
- 18:52Future directions
- 21:25Q&A
related talks
32mSeriously, The Haskell Type Checker is Your Friend
21mTotal Type Error Localization and Recovery with Holes
20mGetting into the Flow: Towards Better Type Error Messages for Constraint-Based ...
42mSuggesting Valid Substitutions For Typed Holes
01h 29mHaskell Summer of Code Presentations
01h 26mHaskell Language Server
46mSystematically handling errors in your code to make them useful
38mSay goodbye to bugs and anti-patterns with Error Prone
