In the last chapter, you learned about how Haskell handles IO by working through several small examples, but it can be hard to understand how to move from these smaller examples to building a complete application that includes IO. In this chapter, we’ll use all of the material that we’ve covered so far in this book and built a complete application, including IO. First, we’ll look at a common design pattern for organizing IO in functional programs. Next, we’ll build a complete Haskell application that does several different kinds of IO, including command line argument handling, dealing with environment variables, file IO, and interacting with external processes.
Font size
Background
Font