Автор: Harry Yoon
Издательство: Coding Books Press
Год: 2023-02-22 (Revision 1.0.1)
Страниц: 375
Язык: английский
Формат: pdf, epub, mobi
Размер: 10.2 MB
Improve Your Haskell Programming Skills in a Weekend!
This book is a "mini" language reference on Haskell, which is one of the most widely used (pure) functional programming languages. We go through all salient features of the modern Haskell programming language in this book (based on the Haskell 2010 Language Report).
Although it is written as a reference, you can read it more or less from beginning to end and you should be able to get the overall picture of the Haskell language if you have some prior experience with functional programming in Haskell or other ML-style functional programming languages. This book is, however, not for absolute beginners.
Functional programming is different from imperative programming. But, not necessarily more difficult. Unfamiliarity breeds
Haskell is one of the most widely used functional programming languages. Haskell has been around for over 30 years, and it has influenced the language designs of numerous (modern) programming languages, including many popular imperative languages such as Python, jаvascript, C#, Julia, and Rust to name a few.
Haskell is a pure functional programming language. This means that we primarily, and almost exclusively, use the mathematical principle of function applications and function compositions as the primary means of computation. This also means that more traditional imperative programming styles using side effects cannot be generally used while programming in Haskell (with a few important exceptions).
When programmers with the imperative programming background start learning functional programming languages like Haskell, they generally face two main challenges. First, they will need to learn pure functional programming, which requires a rather different mindset. This can be the hard part for some people who have been trained in imperative programming for many years. Second, languages like Haskell use somewhat different syntax from most of the main stream languages. In fact, functional programming languages all tend to use more terse syntax, for example, and this trips over many beginning Haskell programmers. However, this is the easy part.
The book covers:
Haskell software development process basics.
Haskell module system. Import and export.
Predefined types such as Char and String.
Top-level and nested declarations.
Type signatures. Function and pattern bindings.
Functions. Sections. Currying.
Conditional expressions. Case expressions.
Pattern matching.
Types. Data types. Type classes.
Basics of Functors and Monads.
Basic IO.
The Standard Prelude functions.
The builtin classes such as Eq, Ord, and Enum.
Скачать Haskell Mini Reference: A Hitchhiker's Guide to the Modern Programming Languages, #10