Skip to Content
Learn Haskell by Example
book

Learn Haskell by Example

by Philipp Hagenlocher
December 2024
Beginner content levelBeginner
456 pages
13h 37m
English
Manning Publications
Content preview from Learn Haskell by Example

13 Parallel image processing

This chapter covers

  • Working with generalized algebraic data types
  • Safely avoiding return-type polymorphism
  • Writing a generic algorithm for transforming image data
  • Improving performance using parallelism

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Programming with Haskell

Get Programming with Haskell

Will Kurt
Haskell in Depth

Haskell in Depth

Vitaly Bragilevsky

Publisher Resources

ISBN: 9781633438934Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link