Installing ideah
- On IDEA's Start page, open the Plugin manager.
- Select the "Available" tab and search for 'haskell'. Right-click the "Haskell" plugin and select "Download and install".
Confirm the plugin download and installation and the restart of IDEA.
Creating a Haskell Project
- Create a new project as usual.
- Name the project and specify it to be a Haskell one
- 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.
Compilation and Execution
- Create a new Haskell module (right-click the necessary directory, New, Haskell module)
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.
- Compile the project with Ctrl+F9 or by pressing "Make Project", as shown on the picture.
- To run the project, right-click the runnable Haskell file (that is, a file with a
main
function) and select "Run ".
Continue with the usage wiki guides.