Type checking with open type functions
Tom Schrijvers, Simon Jones, Manuel M. T. Chakravarty et al. · ACM SIGPLAN International Conference on Functional Programming (ICFP) · 2008
We report on an extension of Haskell with open type-level functions and equality constraints that unifies earlier work on GADTs, functional dependencies, and associated types. The contribution of the paper is that we identify and characterise the key technical challenge of entailment checking; and we give a novel, decidable, sound, and complete algorithm to solve it, together with some practically-important variants. Our system is implemented in GHC, and is already in active use.
Cited by 94 works. doi:10.1145/1411204.1411215
Authors
References
- Theory and practice of constraint handling rules
- Monad transformers and modular interpreters
- Cayenne—a language with dependent types
- Guarded recursive datatype constructors
- Simple unification-based type inference for GADTs
- System F with type equality coercions
- Associated type synonyms
- Languages of the future
- Proceedings of the 1999 Haskell Workshop
- Proof-Producing Congruence Closure