Skip to content

robstewart57/haskell_tutorial_cookbook_examples

 
 

Repository files navigation

Examples for "Haskell Tutorial and Cookbook" by Mark Watson

Note: this repo is very much a work in progress: I am working on a Haskell book:

Haskell Tutorial and Cookbook

The book should be done by the end of December 2016, and the examples in this repo should be in good enough shape to experiment with by the end of October 2016.

Book Table of Contents (This will change as the book is written)

Contents
Cover Material, Copyright, and License
Preface
 A Request from the Author
 Structure of the Book
 Code Examples
 Functional Programming Requires a Different Mind Set
 Why Haskell?
 
Section 1 - Tutorial

Tutorial on Pure Haskell Programming
  Interactive GHCi Shell
  Using Parenthesis or the Special $ Character and Operator Precedence  
  Lazy Evaluation
  Understanding List Comprehensions 
  Haskell Rules for Indenting Code
  Understanding let and where 
  Conditional Statements and Anonymous Functions 
  Maps
  Sets
  More on Functions
  Comments on Dealing With Immutable Data and How to Structure Programs
  Error Handling
  Testing Haskell Code
 
Tutorial on Impure Haskell Programming
  Hello World Simple Main Program 
  Console IO
  FileIO
  Error Handling in Impure Code
  Network IO
  A More Detailed Look at Monads
  List Comprehensions Using the do Notation
  Using Mutable Maps
  Mutable State Using the State Monad
  Database Access for Sqlite
  Database Access for Postgres
  Dealing With Time
  Concurrent Example Calculating Prime Numbers
  Concurrent Example of Using Threads for Fetching Web Pages
  Using MVars for Shared State Between Threads
  Parallel Neural Network
  Tutorial on Writing Haskell Applications
  Writing CommandLine Applications in Haskell

Section 2 - Cookbook

  Text Processing
  CSV Spreadsheet Files
  JSON Data
  Cleaning Natural Languge Text
  Natural Language Processing Tools
  Resolve Entities in Text to DBPedia URIs
  Bag of Words Classification Model
  Text Summarization
  Web Scraping
  Haskell Libraries
  Linked Data and the Semantic Web
  
Appendix A - Haskell Tools Setup

  Stack
  Emacs Setup
  Do you want more of an IDE-like Development Environment?
  hlint

Tool Installation

See Appendix A in my book, or simply install stack and hlint.

About

Code samples for my book "Haskell Tutorial and Cookbook"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%