ML Modules and Haskell Type Classes: A Constructive Comparison

  • Authors:
  • Stefan Wehr;Manuel M. Chakravarty

  • Affiliations:
  • Institut für Informatik, Universität Freiburg, Freiburg i. Br., Germany 79110;School of Computer Science and Engineering, The University of New South Wales, UNSW SYDNEY NSW, Australia 2052

  • Venue:
  • APLAS '08 Proceedings of the 6th Asian Symposium on Programming Languages and Systems
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Researchers repeatedly observed that the module system of ML and the type class mechanism of Haskell are related. So far, this relationship has received little formal investigation. The work at hand fills this gap: It introduces type-preserving translations from modules to type classes and vice versa, which enable a thorough comparison of the two concepts.