Associated type synonyms
Manuel M. T. Chakravarty, Gabriele Keller, Simon Jones · ACM SIGPLAN International Conference on Functional Programming (ICFP) · 2005
Haskell programmers often use a multi-parameter type class in which one or more type parameters are functionally dependent on the first. Although such functional dependencies have proved quite popular in practice, they express the programmer's intent somewhat indirectly. Developing earlier work on associated data types, we propose to add functionally dependent types as type synonyms to type-class bodies. These associated type synonyms constitute an interesting new alternative to explicit functional dependencies.
Cited by 220 works. doi:10.1145/1086365.1086397
Authors
References
- The Standard Template Library
- The Boost graph library : user guide and reference manual
- Term rewriting systems
- Handbook of Logic in Computer Science
- Template meta-programming for Haskell
- A simple applicative language: mini-ML
- Guarded recursive datatype constructors
- A theory of qualified types
- Type inference with constrained types
- A system of constructor classes: overloading and implicit higher-order polymorphism