This chapter covers
- How to set up a basic Haskell project and run some code
- An overview of common Haskell data types and how functions work
- Performing basic operations with strings and lists
- Using guards and pattern matching for handling case distinctions
- Working with immutable data and how to represent transformations
In the last chapter we learned about what Haskell is and discussed its peculiar language design decisions. We also learned some specifics on pure functions and how pure functional programs, such as the ones we write with Haskell, are structured. Although it is essential to understand these concepts, it’s not much use talking about them, without getting our hands a bit dirty. You can’t learn the application of theory without applying anything. So let’s get down to implementing our first tiny project!