rodlogic / intellij-haskforce

Haskell plugin for IntelliJ IDEA Community Edition

Home Page:http://carymrobbins.github.io/intellij-haskforce/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HaskForce Build Status

The IntelliJ plugin for Haskell.

You can install the plugin by downloading the latest zip archive from the releases page and loading it in IntelliJ via Preferences > Plugins > Install plugin from disk. Check out the Quick Start Guide for more info!

Building the plugin

  1. Clone HaskForce.

  2. If you haven't already, download and install IntelliJ IDEA and Java JDK.

  3. (Optional) Check out the Community Edition source files.

  • $ git clone https://github.com/JetBrains/intellij-community.git idea
  • Check the version of your IntelliJ installation by going to About IntelliJ IDEA and checking the build number.
  • Check out the appropriate tag for your build number. For instance, you have Build #IC-135.909, then do $ git checkout idea/135.909
  • Be sure to git checkout the new tag each time you upgrade IntelliJ.
  1. Install and enable additional plugins.
  • JFlex Support
  • Plugin DevKit (already installed)
  • PsiViewer
  1. Configure JFlex settings.
  • Go to Preferences. Below the IDE Settings section locate JFlex. Set the path and skeleton to the idea/tools/lexer files.
  1. Configure SDK and source files.
  • Create a new IntelliJ Platform Project from existing sources (pointed to your cloned HaskForce directory).
  • Go to File > Project Structure. Add SDKs for JDK and IDEA Plugins. For the IDEA Plugins, add sources from the cloned idea to the Sourcepath, if applicable.
  1. Set the project SDK to the IDEA SDK.
  2. From the menu go to Run > Edit Configurations
  3. Click on the + sign and choose Plugin, click OK, then run your new configuration.

Testing the plugin

To run the tests, you'll need to create a run configuration:

  1. Go to Run > Edit Configurations
  2. Click on the + sign and choose JUnit
  3. In the Class field enter HaskellTestCase, which should auto-complete for you.
  4. Click OK and run your new test configuration.

To add more tests:

  • Edit Haskell*Test.java files to add more tests of the same kind that already exists.
  • Edit HaskellTestCase.java if you need to add tests of a different kind.

About

Haskell plugin for IntelliJ IDEA Community Edition

http://carymrobbins.github.io/intellij-haskforce/

License:Apache License 2.0


Languages

Language:Java 94.0%Language:Haskell 6.0%