background preloader

Haskell

Facebook Twitter

Learn You a Haskell for Great Good! - Chapters. Welcome to XMonad. Haskell - Wikibooks, collection of open-content textbooks. Haskell is a functional programming language. If you've programmed before and would like to see a little bit of how Haskell works and is different from other programming languages, see the overview. Haskell is unique in two ways. First, it is a pure functional programming language. If you have a function and you call it twice in two different places with the same arguments then it will return exactly the same value both times. Second, Haskell provides a very modern type system which incorporates features like typeclasses and generalized algebraic data types. (we hope terms like these will roll smoothly off your tongue by the time you're done.) So, why do Haskellers like their language?

In this book we aim to introduce you both to the Haskell language, from the very basics to the most advanced features, and to computer programming in general. Overview[edit] Beginner's Track[edit] Most chapters contain exercises where you can test yourself on what you learned in that chapter. Syntactic sugar. Haskell/YAHT - Wikibooks, collection of open-content textbooks.

Real World Haskell. Hierarchical Libraries. Introduction. Applications and libraries. The number of Haskell packages is growing rapidly. The section 'Haskell library collections' gives an ordering of all these packages by relative importance. In the section 'Haskell applications and libraries' an ordering by category is given. Finally some guidelines for developers of new packages are presented. 1 Haskell library collections 1.1 Haskell Prelude The most important Haskell library is called the Prelude. 1.2 The Haskell 2010 libraries The Haskell 2010 Language and library specification defines a set of libraries with basic functionality which all Haskell implementations should support, including the Prelude. Haskell modules that almost everybody uses are in this group, for example: Control.Monad, Data.List and System.IO. 1.3 The GHC standard libraries GHC comes with an expanded version of the Haskell 2010 libraries.

Examples of libraries, or packages, that belong to this group are: bytestring, containers and Win32. 1.4 Haskell Platform libraries 1.5 The Hackage database.