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

10 Digital music box

This chapter covers

  • Correctly dealing with numeric values and their type classes
  • Working with infinite lists
  • Modeling a domain-specific problem using Haskell’s data types
  • Building abstractions and high-level structures around low-level implementations

So far, we have been dealing with very earnest topics. Ancient encryption schemes, shortest paths, and CSV file mangling are all serious business. In this chapter, we want to be a bit more playful and let our creative spirit run free by making music! Don’t worry if you have no instrument ready at hand or lack any general idea of how to compose. We will use the power of Haskell not just to serve as our own musical synthesizer but also to function as a composition tool ...

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