Advertisement

Types

  • Stefania Loredana Nita
  • Marius Mihailescu
Chapter

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.

Copyright information

© Stefania Loredana Nita and Marius Mihailescu 2019

Authors and Affiliations

  • Stefania Loredana Nita
    • 1
  • Marius Mihailescu
    • 1
  1. 1.BucharestRomania

Personalised recommendations