[work on tutorial text thomashartman1@gmail.com**20080619190937] hunk ./templates/header.st 17 - |About - |FAQ - - |Contact + hunk ./templates/home.st 1 -

Haskell is a great way to program.

+

Haskell is a great way to program.

hunk ./templates/home.st 16 +

Prerequisites

addfile ./templates/prerequisites.st hunk ./templates/prerequisites.st 1 - +

Prerequisites

+ +

For best results with this tutorial, you hopefully have the following.

+ +
+ +

Get started!

+ + + + + addfile ./templates/run-tutorial-locally.st hunk ./templates/run-tutorial-locally.st 1 +

Run This Tutorial Locally

+ +

Before going further, you may want to inform yourself about the basic prerequisites, both knowledge and equipment, you need to make the best use of this tutorial

+ +

Assuming the basics are in place, you can install and run this tutorial locally as follows

+ + + + + + + + + hunk ./templates/start-tutorial.st 1 -

Starting the tutorial...

+

Get Started Learning HAppS

hunk ./templates/start-tutorial.st 3 -

Prerequisites

+

The best way to learn how to use use HAppS with this tutorial is to actually install and run it in a local environment where you have control over it. Then, when you are done learning, you can use the tutorial code as a template for your own HAppS applications.

+ +

Install and run this tutorial locally

+ +

Getting on with the tutorial proper, our first lesson explains how to do basic url handling.

+ + + hunk ./templates/start-tutorial.st 12 - hunk ./templates/start-tutorial.st 15 -

Get the source for this tutorial (darcs get http://code.haskell.org/happs-examples)

hunk ./templates/start-tutorial.st 18 -

install happs (time sudo cabal install HAppS-Server. This may take a while, but it should not require any babysitting. But you should probably go get a cup of coffee or go for a walk or something. Note: the time command will tell you how long installation takes. For me it has taken over an hour. (I think the long installation time has been noted as a bug somewhere, and I hope this will get better with time.))

hunk ./templates/start-tutorial.st 19 -

run it. ./runServer.sh. You should now be able to view the tutorial on your local computer: http:localhost:5000/tutorial/home