Abstract
Functional dependencies are a popular and useful extension to Haskell style type classes. In this paper, we give a reformulation of functional dependencies in terms of Constraint Handling Rules (CHRs). In previous work, CHRs have been employed for describing user-programmable type extensions in the context of Haskell style type classes. Here, we make use of CHRs to provide for the first time a concise result that under some sufficient conditions, functional dependencies allow for sound and decidable type inference. The sufficient conditions imposed on functional dependencies can be very limiting. We show how to safely relax these conditions.
Original language | English |
---|---|
Title of host publication | Programming Languages and Systems |
Subtitle of host publication | 13th European Symposium on Programming, ESOP 2004 Held as Part of the Joint European Conferences on Theory and Practice of Software, ETAPS 2004 Barcelona, Spain, March 29 – April 2, 2004 Proceedings |
Editors | David Schmidt |
Place of Publication | Berlin Germany |
Publisher | Springer |
Pages | 49-63 |
Number of pages | 15 |
ISBN (Print) | 3540213139 |
DOIs | |
Publication status | Published - 1 Dec 2004 |
Externally published | Yes |
Event | European Symposium on Programming 2004 - Barcelona, Spain Duration: 29 Mar 2004 → 2 Apr 2004 Conference number: 13th https://link-springer-com.ezproxy.lib.monash.edu.au/book/10.1007/b96702 (Proceedings) |
Publication series
Name | Lecture Notes in Computer Science |
---|---|
Publisher | Springer |
Volume | 2986 |
ISSN (Print) | 0302-9743 |
Conference
Conference | European Symposium on Programming 2004 |
---|---|
Abbreviated title | ESOP 2004 |
Country/Territory | Spain |
City | Barcelona |
Period | 29/03/04 → 2/04/04 |
Internet address |