-
Notifications
You must be signed in to change notification settings - Fork 39
Quick Start Guide
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.
- Choose New Project, select the Haskell option, then click Next.
- Enter the project name and location.
- 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.
- Click Finish.
Create a new project and set the project location to the root of your existing project.
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.
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.
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.