Functional Programming in Haskell (HUGS)

Hugs is an implementation of the Haskell programming language. Downloads and documentation are available at:

http://www.haskell.org/hugs/

The following links point to literate, executable Haskell files (they all have a .lhs) extension. You will probably need to download these files and open them with an ordinary text editor. To run them, you will need to download a HUGS interpreter. The files contain an overview of Haskell as well as working examples.

Basics

Operators

Syntax

Recursion

List Processing

Functions

Types

Example: Rational Numbers

Problems