Haskell Installation Instructions

Rose-Hulman Institute of Technology
Dept. of Computer Science and Software Engineering

Overview

This page gives instructions for installing Haskell on Windows while on campus using a local copy of the Glasgow Haskell Compiler (GHC). [see license below] If you are off-campus or installing on a non-Windows OS, you probably want to go directly to the the GHC website. Then come back here and try the steps to verify that your installation is working.

Installation Steps for Windows on Campus

  1. Download the Windows installer for GHC.
  2. Run the installer.
  3. Follow the steps below to see if your installation is working correctly.

Verify that your Installation is Working

Follow these steps to verify that your installation is working:

  1. Launch GHCi. (On Windows, you probably want Start → All Programs → GHC → 6.8.3 → GHCi. Mac and Linux user can just type ghci at a shell prompt.) You should get a prompt like in the figure below.

    Screen shot of ghci prompt
  2. At the Prelude> prompt, enter 6 * 7 and press enter. You should get the answer.
  3. Enter :type "Hello, world" Note that you must type the leading colon before the word “type”. You should get back "Hello, world" :: [Char].
  4. Enter :quit to exit.

The Glasgow Haskell Compiler License

Copyright 2004, The University Court of the University of Glasgow.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW AND THE CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.