Proceedings of the 2015 ACM SIGPLAN Symposium on Haskell 2015
DOI: 10.1145/2804302.2804304
|View full text |Cite
|
Sign up to set email alerts
|

Type families with class, type classes with family

Abstract: Type classes and type families are key ingredients in Haskell programming. Type classes were introduced to deal with ad-hoc polymorphism, although with the introduction of functional dependencies, their use expanded to type-level programming. Type families also allow encoding type-level functions, but more directly in the form of rewrite rules.In this paper we show that type families are powerful enough to simulate type classes (without overlapping instances), and we provide a formal proof of the soundness and… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1

Citation Types

0
1
0

Year Published

2017
2017
2020
2020

Publication Types

Select...
2
1
1

Relationship

0
4

Authors

Journals

citations
Cited by 4 publications
(1 citation statement)
references
References 16 publications
0
1
0
Order By: Relevance
“…Expanding on an earlier sketch by Schrijvers and Sulzmann [24], Serrano et al [26] discuss an approach for elaborating type classes into type families augmented with dictionaries. They use injectivity annotations to elaborate functional dependencies.…”
Section: Related Workmentioning
confidence: 99%
“…Expanding on an earlier sketch by Schrijvers and Sulzmann [24], Serrano et al [26] discuss an approach for elaborating type classes into type families augmented with dictionaries. They use injectivity annotations to elaborate functional dependencies.…”
Section: Related Workmentioning
confidence: 99%