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

5 Words and graphs

This chapter covers

  • Modeling a graph structure in Haskell
  • Ensuring invariants on our data types by hiding their construction and modification
  • Reusing implementations with minimal overhead
  • Building simple transformations for strings

Our last project was a minimal clone of a popular UNIX tool. Serious business! But life is more than just writing industry-grade utilities for all of our terminal line numbering needs. Let’s have some fun. And how do people usually have fun? By playing games of course!

A fun little game to play is the word ladder game, which makes the players build chains of words that can be found by transforming single letters within them. The game has many variants, and we will focus on a pretty complex ...

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