Learn from an expert lecturer and researcher who knows all the ins and outs of Haskell
Develop a clear understanding of Haskell, from the basics through to advanced concepts
Get to grips with all the key functional programming techniques
Purchase of the print or Kindle book includes a free PDF eBook
Description
With software systems reaching new levels of complexity and programmers aiming for the highest productivity levels, software developers and language designers are turning toward functional programming because of its powerful and mature abstraction mechanisms. This book will help you tap into this approach with Haskell, the programming language that has been leading the way in pure functional programming for over three decades.
The book begins by helping you get to grips with basic functions and algebraic datatypes, and gradually adds abstraction mechanisms and other powerful language features. Next, you’ll explore recursion, formulate higher-order functions as reusable templates, and get the job done with laziness. As you advance, you’ll learn how Haskell reconciliates its purity with the practical need for side effects and comes out stronger with a rich hierarchy of abstractions, such as functors, applicative functors, and monads. Finally, you’ll understand how all these elements are combined in the design and implementation of custom domain-specific languages for tackling practical problems such as parsing, as well as the revolutionary functional technique of property-based testing.
By the end of this book, you’ll have mastered the key concepts of functional programming and be able to develop idiomatic Haskell solutions.
Who is this book for?
If you are a programmer looking to gain knowledge of Haskell who’s never been properly introduced to functional programming, this book is for you. Basic experience with programming in a non-functional language is a prerequisite. This book also serves as an excellent guide for programmers with limited exposure to Haskell who want to deepen their understanding and foray further into the language.
What you will learn
Write pure functions in all their forms – that is basic, recursive, and higher-order functions
Model your data using algebraic datatypes
Master Haskell's powerful type-class mechanism for ad hoc overloading
Find out how Haskell's laziness gets the job done
Reconcile Haskell's functional purity with side effects
Familiarize yourself with the functor, applicative functor, monad hierarchy
Discover how to solve problems with domain-specific languages
Find more bugs with Haskell's property-based testing approach
“Soar with Haskell” by Tom is a concise yet comprehensive guide that propels readers into the world of Haskell programming. Through clear explanations and practical examples, Tom demystifies Haskell’s concepts, making them accessible to beginners while offering insights for experienced developers. This book serves as an invaluable resource for anyone looking to soar to new heights in functional programming with Haskell.
Amazon Verified review
Jacob QuamFeb 19, 2024
5
This book is a comprehensive and thoughtfully crafted guide to Haskell and functional programming (FP) that stands as an essential resource for both beginners and experienced programmers alike. From the foundational concepts of FP and Haskell's syntax to advanced topics like type classes, monads, and domain-specific languages, the book covers a wide array of subjects necessary for mastering Haskell and functional programming paradigms.The structure of the book is meticulously organized, starting with the basics of functional programming, such as writing basic functions, understanding primitive types, and leveraging the type checker for more robust code. This foundational knowledge is crucial for anyone new to FP and sets the stage for more complex topics.The chapters on algebraic data types, higher-order functions, and recursion are particularly illuminative, offering clear explanations and practical examples that demonstrate the power and elegance of Haskell. The discussion on type classes and monads—topics often considered challenging for newcomers—is handled with care, making these concepts accessible and understandable.One of the book's strengths is its emphasis on practical application, as seen in the sections on input/output, property-based testing, and parser combinators. These chapters not only deepen the reader's understanding of Haskell's capabilities but also equip them with the tools to tackle real-world programming challenges.Moreover, the exploration of Haskell-specific features, such as lazy evaluation and monad transformers, showcases the unique advantages of Haskell and functional programming. These advanced topics are presented in a way that builds on the reader's existing knowledge, ensuring a deeper and more integrated understanding of the material.The inclusion of questions, further reading suggestions, and answers at the end of each chapter reinforces learning and encourages further exploration. Additionally, the book's approach to teaching Haskell through a combination of theoretical explanations and practical examples makes it an invaluable resource for anyone looking to learn or deepen their understanding of Haskell and functional programming.In summary, this book is a testament to the depth and breadth of Haskell as a programming language. Its clear explanations, practical examples, and thoughtful organization make it an indispensable guide for anyone interested in mastering Haskell and functional programming. Whether you're a beginner eager to learn Haskell from the ground up or an experienced programmer looking to deepen your understanding of functional programming concepts, this book is a valuable addition to your programming library.
Amazon Verified review
Giri PrasathJan 31, 2024
5
This book is shows the world to functional programming. It has cover in depth to haskellIt is a great book for haskell enthusiast's.
Amazon Verified review
tusharJan 28, 2024
4
This book stands out for its conciseness and direct approach. It assumes a foundational understanding of imperative or object-oriented programming languages, allowing it to dive straight into the intricacies of Haskell without unnecessary repetition. The pacing is well-balanced, offering a comfortable learning curve without feeling rushed or overly slow.One notable strength is the book's coverage of the features in the latest GHC-9 compiler version, a detail often lacking in other resources. This up-to-date content adds significant value for readers aiming to stay current with Haskell development.The only drawback I encountered was the relatively limited number of problems at the end of each chapter. Despite this minor concern, the overall quality of the book makes it a worthwhile investment for anyone looking to make a smooth transition from imperative to functional programming.In summary, this book provides an excellent bridge for programmers familiar with imperative paradigms, offering a clear path into the fascinating world of Haskell."
Tom Schrijvers is a professor of computer science at KU Leuven in Belgium since 2014, and previously from 2011 until 2014 at Ghent University in Belgium. He has over 20 years of research experience in programming languages and has co-authored more than 100 scientific papers. Much of his research focuses on functional programming and on the Haskell programming language in particular: he has made many contributions to the language, its ecosystem and applications, and chaired academic events like the Haskell Symposium. At the same time, he has more than a decade of teaching experience (including functional programming with Haskell) and received several teaching awards.
Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.
If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.
Please Note: Packt eBooks are non-returnable and non-refundable.
Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:
You may make copies of your eBook for your own use onto any machine
You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?
If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:
Register on our website using your email address and the password.
Search for the title by name or ISBN using the search option.
Select the title you want to purchase.
Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title.
Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?
If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
To view your account details or to download a new copy of the book go to www.packtpub.com/account
Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.
You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.
What are the benefits of eBooks?
You can get the information you need immediately
You can easily take them with you on a laptop
You can download them an unlimited number of times
You can print them out
They are copy-paste enabled
They are searchable
There is no password protection
They are lower price than print
They save resources and space
What is an eBook?
Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.
When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.
For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.