Type class directives

  • Authors:
  • Bastiaan Heeren;Jurriaan Hage

  • Affiliations:
  • Institute of Information and Computing Sciences, Utrecht University, Utrecht, The Netherlands;Institute of Information and Computing Sciences, Utrecht University, Utrecht, The Netherlands

  • Venue:
  • PADL'05 Proceedings of the 7th international conference on Practical Aspects of Declarative Languages
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

The goal of this paper is to improve the type error messages in the presence of Haskell 98 type classes, in particular for the non-expert user. As a language feature, type classes are very pervasive, and strongly influence what is reported and when, even in relatively simple programs. We propose four type class directives, and specialized type rules, to lend high-level support to compilers to improve the type error messages. Both have been implemented, and can be used to easily modify the behavior of the type inference process.