December 2024
Beginner
456 pages
13h 37m
English
In the last chapter, we built a parser for PNM files, a simple image format. While we have covered the possibility of reading these files, we have not yet created a way of transforming them and writing them back to the filesystem. That will change with this chapter.
We want to cover using Haskell’s type system to create a data type that can dynamically store data of various types without needing to use parametric polymorphism while still being able to retrieve type information on this data later on. Then, ...