In this chapter, you’ve seen how Haskell’s type system is integrated into the language. You’ve learned how to add type annotations to your own programs to help them be more readable and easier to use correctly, and you’ve learned how to use the type system to look up information about how functions work, and to troubleshoot your own programs using type holes. As you spend more time with Haskell, and improve your understanding of the type system and its capabilities, you will learn to see types as an invaluable tool to help you understand and express your code. Much of the rest of this book will be devoted to understanding how to best make use of Haskell’s type system to write effective and maintainable programs, and investing early in making sure that you are comfortable with types and how to use them will pay dividends as you continue on your path toward mastering Haskell.
In the next chapter, you’ll learn how to create your own types and how the way you define types can profoundly impact the way you write your programs. Having a good understanding of the way Haskell’s built-in types work will be instrumental in being able to easily combine them when you build your own types, and will give you an effective starting point when you start to think about how you want to design and build your own types.