Skip to content
Free planNo credit card requiredStart writing

book chapter · Apress eBooks · 2019

Using Containers and Type Classes

Alejandro Serrano Mena

Cited by 0Abstract and details only

Abstract

You have seen how parametric polymorphism and higher-order functions help in the process of abstraction. In this chapter, I’ll introduce a new kind of polymorphism that sits in between parametric and the absence of polymorphism: ad hoc polymorphism. Using this feature, you can express that certain types exhibit a common behavior. Incidentally, you will also learn how Haskell makes it possible to use addition, (+), on different numeric types like Integer and Float while maintaining a strong type system.

Cite this paper

APA 7

Mena, A. S. (2019). Using Containers and Type Classes. Apress eBooks, 109–155. https://doi.org/10.1007/978-1-4842-4480-7_4

MLA 9

Mena, Alejandro Serrano. “Using Containers and Type Classes.” Apress eBooks, 2019, pp. 109–55, https://doi.org/10.1007/978-1-4842-4480-7_4.

Chicago

Mena, Alejandro Serrano. 2019. “Using Containers and Type Classes.” Apress eBooks: 109–55. https://doi.org/10.1007/978-1-4842-4480-7_4.

Harvard

Mena, A.S. (2019) ‘Using Containers and Type Classes’, Apress eBooks, pp. 109–155. Available at: https://doi.org/10.1007/978-1-4842-4480-7_4.

BibTeX
@incollection{mena2019using,
  title = {{Using Containers and Type Classes}},
  author = {Mena, Alejandro Serrano},
  booktitle = {Apress eBooks},
  pages = {109--155},
  year = {2019},
  doi = {10.1007/978-1-4842-4480-7_4}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.