Learn Haskell by Example
eBook - ePub

Learn Haskell by Example

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Learn Haskell by Example

About this book

Learn Haskell by doing Haskell projects! In this book, you’ll get practical experience writing Haskell code and applying functional programming to actual development challenges.

In Learn Haskell by Example, you’ll build your Haskell skills by working through hands-on challenges and conundrums. You’ll learn to look at each project through a Haskell lens, and then solve it using features like lazy evaluation, immutable data structures, and monads.

In Learn Haskell by Example you will learn how to:

• Use Haskell for daily programming tasks
• Effectively apply functional concepts
• Avoid common beginner pitfalls of Haskell
• Apply abstract concepts in the Haskell language
• Debug and profile Haskell applications
• Improve the performance of Haskell applications

Haskell is an amazing choice for applications that need an extra guarantee of safety, such as in smart contracts, data intensive applications, and large scale distributed systems. In this book, you’ll see just how practical Haskell can be for creating programs by building your own engaging projects! Learn how to structure real-world applications, how to work with the Haskell tool chain effectively, and what to look out for when writing critical sections in the program's logic. Best of all, each project in this book is fully extensible and customizable so you can keep tinkering with your favorites!

About the technology

Programmers spend a lot of time debugging and refactoring code, reading comments and documentation, and trying to make sense out of complex designs. Haskell, a powerful, beautiful, and challenging functional programming language, promises a different path. By focusing your attention on simple functions, clearly-defined behaviors, and the right high-level abstractions, Haskell disallows the dangerous behaviors that usually lead to bugs and crashes.

About the book

Learn Haskell by Example teaches you to build applications in Haskell by designing and coding fun and engaging projects. In this easy-to-follow guide, you’ll create a domain specific language for music, an image processing library, and more! You’ll learn Haskell from the ground-up with a focus on important concepts like function design, composition, and data immutability. Each project gives you a new insight into how to think in Haskell and helps you understand why many Haskell developers say they will never use another language again.

What's inside

• Use Haskell for daily programming tasks
• Purely functional programming
• Avoid common Haskell pitfalls

About the reader

For readers who know how to program in an object-oriented language.

About the author

Philipp Hagenlocher is a full time Haskell developer, and the creator of the beloved Haskell for Imperative Programmers YouTube course.

The technical editor on this book was Alexander Vershilov.

Table of Contents

1 Introduction
2 Ancient secret keeping on modern machines
3 Every line counts
4 Line numbering tool
5 Words and graphs
6 Solving the ladder game
7 Working with CSV files
8 A tool for CSV
9 Quick checks and random tests
10 Digital music box
11 Programming musical compositions
12 Parsing pixel data
13 Parallel image processing
14 Files and exceptions
15 Transformers for synchronizing
16 JSON and SQL
17 APIs using Servant
Appendix A The Haskell Toolchain
Appendix B Lazy evaluation

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Learn Haskell by Example by Phillip Hagenlocher in PDF and/or ePUB format, as well as other popular books in Computer Science & Object Oriented Programming. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Learn Haskell by Example
  2. copyright
  3. dedication
  4. contents
  5. preface
  6. acknowledgments
  7. about this book
  8. about the author
  9. about the cover illustration
  10. 1 Introduction
  11. 2 Ancient secret keeping on modern machines
  12. 3 Every line counts
  13. 4 Line numbering tool
  14. 5 Words and graphs
  15. 6 Solving the ladder game
  16. 7 Working with CSV files
  17. 8 A tool for CSV
  18. 9 Quick checks and random tests
  19. 10 Digital music box
  20. 11 Programming musical compositions
  21. 12 Parsing pixel data
  22. 13 Parallel image processing
  23. 14 Files and exceptions
  24. 15 Transformers for synchronizing
  25. 16 JSON and SQL
  26. 17 APIs using Servant
  27. appendix A The Haskell Toolchain
  28. appendix B Lazy evaluation
  29. index