In this chapter, you learned how to create larger Haskell projects that depend on external libraries, and are made up of more than one module. Being able to re-use code, including both external libraries and code you’ve written, is key to being able to effectively build larger and more sophisticated applications.
Throughout the rest of this book, we will not spend much on the specific structure of the applications you are building, or the setup of particular projects. You can refer back to this chapter each time you need to start a new project until you’re more comfortable setting up a project from scratch. At first, you’re likely to find that your projects have a relatively flat organization, and you’re unlikely to make extensive use of features like export lists, smart constructors, or re-exporting things you’ve imported from other modules. Don’t go looking for ways to complicate the structure of your projects unnecessarily. Instead, as you’re using external libraries, take note of common patterns and think about what problems that they might solve, and consider adopting more sophisticated organizational approaches slowly so that you can get a feeling for the pros and cons of different approaches to organizing your code.