Skip to content
carymrobbins edited this page Oct 12, 2014 · 17 revisions

Installing the plugin

To install the plugin, download the latest zip archive from the releases page and install it from IntelliJ -

  • Preferences > Plugins > Install plugin from disk.

Note that pre-releases are non-production builds. If you encounter any issues please report them in our issues tracker.

Creating a new project

  1. Choose New Project, select the Haskell option, then click Next.
  2. Enter the project name and location.
  3. Set the Project SDK. This should be the path to your GHC installation. The IDE will attempt to guess your GHC directory. Once you are in that directory, click Choose.
  4. Click Finish.

Creating a project from existing sources

Create a new project and set the project location to the root of your existing project.

Configuring external tools

HaskForce can integrate with tools such as HLint and Stylish-Haskell. These can be configured from Project Preferences > Haskell Tools. The Auto Find button will attempt to find this executable for you. These are configured on a per-project basis. You can set the defaults for all projects using File > Other Settings > Default Settings.

Building your application

In order to build your application you must be using a cabalized project. If so, you can use Build > Make Project.

To customize your build, navigate to Project Settings > Compiler > Haskell Compiler. From there you can set your preferences, such as disabling profiling, building in a sandbox, etc. You can set the defaults for all projects using File > Other Settings > Default Settings.

Running your application

HaskForce currently supports two run types: applications and test-suites. You can find these via the Edit Configurations menu. These are implemented using cabal run and cabal test, respectively. Use the Program Arguments parameter to specify alternative run configurations from the cabal file or other command line arguments.

Clone this wiki locally