Principal type inference for GHC-style multi-parameter type classes

Martin Sulzmann, Tom Schrijvers, Peter J. Stuckey

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearchpeer-review

6 Citations (Scopus)

Abstract

We observe that the combination of multi-parameter type classes with existential types and type annotations leads to a loss of principal types and undecidability of type inference. This may be a surprising fact for users of these popular features. We conduct a concise investigation of the problem and axe able to give a type inference procedure which, if successful, computes principal types under the conditions imposed by the Glasgow Haskell Compiler (GHC). Our results provide new insights on how to perform type inference for advanced type extensions.

Original languageEnglish
Title of host publicationProgramming Languages and Systems - 4th Asian Symposium, APLAS 2006, Proceedings
Pages26-43
Number of pages18
Publication statusPublished - 1 Dec 2006
Externally publishedYes
EventAsian Symposium on Programming Languages and Systems 2006 - Sydney, Australia
Duration: 8 Nov 200610 Nov 2006
Conference number: 4th
https://link.springer.com/book/10.1007/11924661 (Proceedings)

Publication series

NameLecture Notes in Computer Science
Volume4279
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceAsian Symposium on Programming Languages and Systems 2006
Abbreviated titleAPLAS 2006
Country/TerritoryAustralia
CitySydney
Period8/11/0610/11/06
Internet address

Cite this