Associated type synonyms

  • Authors:
  • Manuel M. T. Chakravarty;Gabriele Keller;Simon Peyton Jones

  • Affiliations:
  • University of New South Wales;University of New South Wales;Microsoft Research Ltd., Cambridge, UK

  • Venue:
  • Proceedings of the tenth ACM SIGPLAN international conference on Functional programming
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

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.