Computing Resources
Home Syllabus Text / Readings Computing Resources Lecture Slides Homework

 

Computing Resources:

Haskell will be used as the primary programming language in this class.  Haskell is a purely functional language that is quite a bit different from mainstream languages such as C, C++, or Java.

The Haskell implementation that we will use is called Hugs.  Although Hugs is installed on the Linux machines in the Zoo, the graphics library is unfortunately incompatible with the Zoo's version of Linux, and thus I do not recommend this.  Instead, you should use the Windows implementation, since it is the one on which I developed the code, and on which I have the most confidence that the graphics package will work properly.  You can do this either on the Windows machines in the Zoo, or on your own machine.  If you prefer to run Hugs on your own machine (laptop or otherwise), go to haskell.org/hugs where you will find easy instructions on how to download the system for Windows.

Once you have installed Hugs, you should also download the following libraries:

bulletGraphicsLib
bulletSOE

Clicking on each of the above links will download a Zip file.  The extracted folders (GraphicsLib and SOE) should be placed in the c:\Program Files\Hugs98\libraries folder (assuming that you installed Hugs in c:\Program Files, which is the default).

The final step is to make the above library files visible to Hugs when you import them.  The easiest way to do this is to copy all of the files in:

bullet c:\Program Files\Hugs98\libraries\SOE\src, and all of those in
bullet c:\Program Files\Hugs98\libraries\GraphicsLib\lib\win32

directly into the c:\Program Files\Hugs98\libraries folder.  This folder is on the default search path for Hugs, and thus these files will then be visible when you try to import them from another folder  (such as from whatever folder  you are doing your homework in).

Once everything is installed, you can invoke Hugs either by double-clicking on a .hs or .lhs file, which will automatically load that file into Hugs.  Alternatively, you can invoke Hugs from the Windows Start menu.