Git Product home page Git Product logo

intellij-haskforce's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.