@inproceedings{7ce14c127ec84f98a2a746e53f52356e,
title = "Classes of arbitrary kind",
abstract = "The type class system in the Haskell Programming language provides a useful abstraction for a wide range of types, such as those that support comparison, serialization, ordering, between others. This system can be extended by the programmer by providing custom instances to one{\textquoteright}s custom types. Yet, this is often a monotonous task. Some notions, such as equality, are very regular regardless if it is being encoded for a ground type or a type constructor. In this paper we present a technique that unifies the treatment of ground types and type constructors whenever possible. This reduces code duplication and improves consistency. We discuss the encoding of several classes in this form, including the generic programming facility in GHC.",
keywords = "Generic programming, Haskell, Type classes",
author = "Alejandro Serrano and Miraldo, {Victor Cacciari}",
year = "2019",
month = jan,
day = "1",
doi = "10.1007/978-3-030-05998-9_10",
language = "English",
isbn = "978-3-030-05997-2",
series = "Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)",
publisher = "Springer",
pages = "150--168",
editor = "Alferes, {Jos{\'e} J{\'u}lio} and Moa Johansson",
booktitle = "Practical Aspects of Declarative Languages",
note = "21st International Symposium on Practical Aspects of Declarative Languages, PADL 2019 ; Conference date: 14-01-2019 Through 15-01-2019",
}