Abstract / Description of output
Quantified class constraints have been proposed many years ago to raise the expressive power of type classes from Horn clauses to the universal fragment of Hereditiary Harrop logic. Yet, while it has been much asked for over the years, the feature was never implemented or studied in depth. Instead, several workarounds have been proposed, all of which are ultimately stopgap measures.
This paper revisits the idea of quantified class constraints and elaborates it into a practical language design. We show the merit of quantified class constraints in terms of more expressive modeling and in terms of terminating type class resolution. In addition, we provide a declarative specification of the type system as well as a type inference algorithm that elaborates into System F. Moreover,
we discuss termination conditions of our system and also provide a prototype implementation.
This paper revisits the idea of quantified class constraints and elaborates it into a practical language design. We show the merit of quantified class constraints in terms of more expressive modeling and in terms of terminating type class resolution. In addition, we provide a declarative specification of the type system as well as a type inference algorithm that elaborates into System F. Moreover,
we discuss termination conditions of our system and also provide a prototype implementation.
Original language | English |
---|---|
Title of host publication | ICFP Workshops 2017 - 10th ACM SIGPLAN International Haskell Symposium (Haskell 2017). |
Publisher | ACM |
Pages | 148-161 |
Number of pages | 14 |
ISBN (Print) | 978-1-4503-5182-9 |
DOIs | |
Publication status | Published - 7 Sept 2017 |
Event | 10th ACM SIGPLAN International Haskell Symposium - Oxford, United Kingdom Duration: 3 Sept 2017 → 9 Sept 2017 https://icfp17.sigplan.org/ |
Publication series
Name | ACM SIGPLAN Notices |
---|---|
Publisher | ACM |
Number | 10 |
Volume | 52 |
ISSN (Print) | 0362-1340 |
ISSN (Electronic) | 1558-1160 |
Conference
Conference | 10th ACM SIGPLAN International Haskell Symposium |
---|---|
Abbreviated title | ICFP 2017 |
Country/Territory | United Kingdom |
City | Oxford |
Period | 3/09/17 → 9/09/17 |
Internet address |