jetaggart/light-haskell


Haskell plugin for LightTable

License: GPL-3.0

Language: JavaScript


Status

Due to the lack of progress on LightTable, I'm no longer maintaining this plugin. Feel free to fork if you'd like to continue work.

Haskell plugin for LightTable

Currently it supports:

  • Hoogling via ctrl-shift-d and selecting hsh (default)
  • Hayooing via ctrl-shift-d and selecting hsy (this gives weird results right now)
  • Hoogling inline via ctrl-d
  • Stylish haskell via sidebar "Haskell: Reformat file"
  • Syntax checking via sidebar "Haskell: Check syntax"
  • Linting via sidebar "Haskell: Check lint"
  • Evaluating the current line or selection via ctrl-enter or cmd-enter
  • Get type of expression via sidebar "Haskell: Get the type of a form in editor"

Requirements

A recent version of cabal that supports sandbox, run, and repl. This must be on a load path that LightTable can read.

Installation

Install using the plugin manager.

Contributing

This plugin is in the early stages, and can use any kind of help. The best place to start is the issues. I've marked things as easy that should be, well, easy. Feel free to comment on any issue asking for help/direction.

The best way to get going is to install this plugin by checking it out (or symlink it) into the plugins directory of your LightTable installation. For example, on OS X:

cd /Applications/LightTable.app/Contents/Resources/app.nw/plugins
git clone [email protected]:jetaggart/light-haskell.git haskell

The plugin directory must be named haskell due to LightTable plugin load paths.

Restart LightTable, and run the command (ctrl-space) Show plugin manager. You should see Haskell as an installed plugin. After, simply go to a haskell file and start running the commands. The plugin bootstraps itself and builds the executable, so give it a minute the first time around. If you don't see what you expect after running a command and waiting a bit, try restarting LightTable. If you still are having trouble, please look at the bottom bar for errors and don't hesitate to submit an issue or help out.

To add functionality, I usually start with testing the haskell client with the ruby server that simulates LightTable. Start by going into the plugin dir and run:

ruby test_server.rb
./run-server.sh 5555 456 .

The ruby script will fire off various commands to the haskell client. You can check it's output to see that it succeeds (or fails). From there, I just figure out how to make LightTable send the data in the format I need it.

Project Statistics

Sourcerank 6
Repository Size 950 KB
Stars 122
Forks 13
Watchers 11
Open issues disabled
Dependencies 0
Contributors 8
Tags 10
Created
Last updated
Last pushed

Top Contributors See all

psylinse Luna Stadler Ben Kirwin elfenlaid Konrad Kuznicki Pontus Granström Ilya Dyachenko remco138

Recent Tags See all

0.3.0 October 04, 2014
0.2.7 October 04, 2014
0.2.6 April 15, 2014
0.2.5 February 15, 2014
0.2.4 January 26, 2014
0.2.3 January 26, 2014
0.2.2 January 26, 2014
0.2.1 January 26, 2014
0.2.0 January 25, 2014
0.1.0 January 25, 2014

Something wrong with this page? Make a suggestion

Last synced: 2017-11-24 18:34:48 UTC

Login to resync this repository