Export to GitHub

ideah - InstallConfig.wiki


Installing ideah

  1. On IDEA's Start page, open the Plugin manager.

http://i52.tinypic.com/b6efrl.png

  1. Select the "Available" tab and search for 'haskell'. Right-click the "Haskell" plugin and select "Download and install".

http://i55.tinypic.com/25h24om.png

Confirm the plugin download and installation and the restart of IDEA.

Creating a Haskell Project

  1. Create a new project as usual.

http://i56.tinypic.com/11h9xj9.png

  1. Name the project and specify it to be a Haskell one

http://i56.tinypic.com/jgtj42.png

  1. After your new project has been loaded, open the Project Structure dialog and specify the SDK path, which is the installation directory of your GHC.

http://i51.tinypic.com/10fwbdd.png

http://i55.tinypic.com/2eap1fc.png

http://i54.tinypic.com/2h51u2b.png

Compilation and Execution

  1. Create a new Haskell module (right-click the necessary directory, New, Haskell module)

http://i52.tinypic.com/2hhksk6.png

and name the module.

Note: if that module is intended to be imported into other Haskell files, it should start in uppercase. If this is a runnable module (contains a main function), it can start in lowercase.

http://i51.tinypic.com/etegz4.png

  1. Compile the project with Ctrl+F9 or by pressing "Make Project", as shown on the picture.

http://i54.tinypic.com/14juqh3.png

  1. To run the project, right-click the runnable Haskell file (that is, a file with a main function) and select "Run ".

http://i51.tinypic.com/2vbq9ee.png

http://i55.tinypic.com/5euxav.png

Continue with the usage wiki guides.