Chapter 1 explained that a functional language like Haskell is characterized by its profuse use of functions as parameters or return values. However, Chapter 2 didn’t mention anything about this topic. I’ll rectify that here. In this chapter, you will focus on not one but three ways in which Haskell allows for a great amount of reuse.
One of the ways in which Haskell shines in the area of reusability is through the creation of functions that can work over values of any type that respects a certain form or ...