The Haskell Phrasebook
The Haskell Phrasebook is a free quick-start Haskell guide comprised of a sequence of small annotated programs. It provides a cursory overview of selected Haskell features, jumping-off points for further reading, and recommendations to help get you writing programs as soon as possible.
To follow along and run the code examples, get the source files from github.com/typeclasses/haskell-phrasebook.
Here is the complete list of libraries utilized by the example programs:
baseis the standard library, required by every Haskell program.
Seqwhenever we will need to retrieve a value from a particular position in a list.
Hashableclass for types that can be used as keys in hash maps.
stm(“software transactional memory”) for all mutable references and inter-thread communication.
timefor holding time in the palm of our hands.
cryptoniteserves all of our cryptography needs.
We represent byte arrays using the
ByteStringtype from the
We use some utilities from the
memorylibrary for working with byte arrays.