COSC 8 - Problem Solving with CS

COSC 8 Announcements, Fall 2009

[Last updated 29-September-2009 at 05:57PM]


Sections

Using Eclipse with Haskell

There is a plugin that allows Haskell programs to be edited under Eclipse. To use it follow these instructions:

http://eclipsefp.sourceforge.net/downloads.html

Follow the instructions at the bottom of the main page in order to view user documentation:

http://eclipsefp.sourceforge.net/haskell/index.html

Please read the following from the Help window under Functional programming -> Haskell:

Many people have not been able to use the Run command successfully. In that case, you can use Eclipse as a formating editor. Keep a separate GHCi window open and enter :r in it whenever you'd like to reload the file.

However, Elijah Gange has managed to get it to work under Windows Vista. He suggests:

  1. In Eclipse click the 'Window' menu and choose 'Preferences...'.
  2. On the left, expand: Functional Programming > Haskell > Compiler > GHC compiler.
  3. On the right, change the GHC executable path to 'C:\ghc\ghc-6.8.3\bin\ghc.exe' or use the browse button to find it wherever it was installed to.

This should also work for XP. A similar procedure may work for other systems.

General Points of Information


Department of Computer Science, Dartmouth College, Hanover, New Hampshire, USA

Last modified: 29-September-2009