Abstract
In Chapter 3, you saw that GHC contains predefined functions, and you worked a little with the div function. In that example, we subtly introduced types, without a comprehensive discussion. It is time to discuss them now. So, in this chapter, you’ll learn about the main types in Haskell, how you can define your own types, and how the type system in Haskell works.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Stefania Loredana Nita and Marius Mihailescu
About this chapter
Cite this chapter
Nita, S.L., Mihailescu, M. (2019). Types. In: Haskell Quick Syntax Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4507-1_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4507-1_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4506-4
Online ISBN: 978-1-4842-4507-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)