Question

What is the current status of Sublime 2 integration for Haskell? I see two possible packages so far. A plugin for code highlighting and a REPL plugin.

Is there an intelli-sense plugin for Haskell? Maybe integration with Hackage as well?

Thanks.

Was it helpful?

Solution

SublimeHaskell plugin is the modern choice for Haskell development with SublimeText. It is well maintained and has plenty of useful features.

Other quite useful plugins:

  • Shell Turtlestein, which allows you to quickly type in shell commands under a single keystroke from inside the editor.
  • SublimeREPL, which allows you to run GHCi from inside the editor. Though without support for cabal repl yet.
  • SideBarEnhancements, which I primarily use to rename/move files without touching the mouse. With it you can hit Ctrl/Cmd + P and type "rename" or "move" to enter the dialogue.

OTHER TIPS

I use Sublime exclusively at the moment and while it's not all that special out of the box, installing sublime-text-haskell as Cubic suggested makes it a little better (it will compile and highlight errors when you save a file and apparently enhances the auto-completion).

I've experimented with writing my own plugins but the reality is that a lot of really cool possibilities are made difficult to implement because the API is actually kind of restricting (there's no way to add extra information like type signatures to auto-complete options for example).

It seems that the dev(s) are working on adding some requested API features, but until then, sublime-text-haskell is probably the best Haskell plugin.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top