Proceedings of the 10th ACM SIGPLAN International Symposium on Haskell 2017
DOI: 10.1145/3122955.3122967
|View full text |Cite
|
Sign up to set email alerts
|

Quantified class constraints

Abstract: 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… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
16
0

Year Published

2018
2018
2023
2023

Publication Types

Select...
4
3
1

Relationship

1
7

Authors

Journals

citations
Cited by 18 publications
(16 citation statements)
references
References 27 publications
0
16
0
Order By: Relevance
“…We cannot illustrate this with COCHIS as, to keep its definition small, it is not equipped with higher-kinded types. The interested reader can find examples in the work of Bottu et al (2017).…”
Section: An Overview Of Cochismentioning
confidence: 99%
See 1 more Smart Citation
“…We cannot illustrate this with COCHIS as, to keep its definition small, it is not equipped with higher-kinded types. The interested reader can find examples in the work of Bottu et al (2017).…”
Section: An Overview Of Cochismentioning
confidence: 99%
“…Nevertheless, if retaining global uniqueness is desired, that can be modelled by the subset of COCHIS without local declarations. In fact, based on the resolution algorithm of an early version of COCHIS, the Glasgow Haskell compiler (GHC) has been recently extended with quantified class constraints (Bottu et al, 2017;GHC, 2017b). Quantified class constraints enable higher-order rules in a setting with global scoping.…”
Section: Introductionmentioning
confidence: 99%
“…30 However, the combined role-/type-checking does not help with this problem. Fortunately, the new QuantifiedConstraints extension [Bottu et al 2017], available in GHC 8.6, provides a new solution, 31 resolving the problem in a much less invasive way.…”
Section: An Explicit Coerce Termmentioning
confidence: 99%
“…FunctorF, FoldableF, and TraversableF (see Figure 4), which are generalizations of their -F-less counterparts, demonstrate that an indexed type is respectively functorial, foldable, or traversable at each possible index. Some of the typeclasses in parameterized-utils are higherkinded generalizations of classes in the Haskell prelude that only assert a uniform operation at all indices, such as EqF, ShowF, and HashableF; the recent introduction of quantified constraints to Haskell [Bottu et al 2017] could obviate the need for these classes. Other typeclasses, such as TestEquality and OrdF, allow comparisons of terms with different argument types and produce evidence of type equality, so they will still be necessary.…”
Section: Some Parameterized Utilitiesmentioning
confidence: 99%