Resources

Haskell Documentation

  • Haskell 98 Report (PDF)
  • Haskell standard prelude and libraries
  • Hugs user guide
  • WASH online documentation
  • Hugs Installation on Linux / OS X

    To install Hugs on your own linux or OS X machine, proceed as follows. (Windows instructions are below.)

    1. Download the latest Hugs tarball from http://haskell.org/hugs and unpack it.
    2. To install it in the standard place (/usr/local/bin), do (in the main hugs directory)
      ./configure
      make
      sudo make install
    3. To install in your own filespace, do (for example)
      ./configure --prefix $HOME/hugs
      make
      make install
    4. Test that things are working by typing:
      hugs
    5. Grab the SOE graphics library zipfile (nb: use this one, not the one available on the Haskell web site, which is out of date) and unpack it.
    6. Compile the x11 support:
      make -C lib/x11/
    7. Test that it's working:
      runhugs -Plib/x11: demos/HelloWorld.hs
    8. Install the files in the /libraries subdirectory of your hugs installation:
      sudo cp -r lib/x11/* /usr/local/lib/hugs/libraries/
    9. Test that the installation worked:
      runhugs demos/HelloWorld.

    Hugs Installation on Windows

    1. Download the Windows version of Hugs98 from http://cvs.haskell.org/Hugs/pages/downloading.htm and install into a folder.

      The remainder of the steps assume the program is installed in a folder C:\Hugs98

    2. Download the SOE graphics library zipfile (as in step 4 for Linux/OSX) and unzip it into C:\Hugs98. It should be in a folder named C:\Hugs98\GraphicsLib-111504\
    3. In the GraphicsLib-111504 folder, there shold be a folder named x11\. Move the entire x11\ folder into C:\Hugs98\libraries\
    4. Move all of the contents of C:\Hugs98\GraphicsLib-111504\win32 (not the folder itself!!!) into C:\Hugs98\libraries\win32\
    5. Test this by opening C:\Hugs98\GraphicsLib-111504\demos\HelloWorld.hs

    (Thanks to Chris Wingard for these instructions.)