30

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.

The Internet
  • 7,959
  • 10
  • 54
  • 89
  • 2
    I would be very interested in the answer to this question, since I use Sublime Text 2 for most of my development. – Chris Taylor Jul 27 '12 at 07:12
  • Interested as well. Although the normal word completition is so far enough for me. – Cubic Jul 27 '12 at 12:26
  • https://bitbucket.org/holmak/sublime-text-haskell apparently enhances completion and lists and highlights errors. – Cubic Jul 27 '12 at 19:33
  • 3
    It moved to https://github.com/SublimeHaskell/SublimeHaskell and will soon support inserting type signatures via ghc-mod as well. – nh2 Aug 10 '12 at 18:14
  • Just an update on this. I have decided to use emacs with the haskell-mode plugin. It is terrific. Linting, haddock, hoogle, ghci all built in. screenshot: https://dl.dropbox.com/u/10021156/Screen%20Shot%202012-12-19%20at%202.33.27%20PM.png – The Internet Dec 19 '12 at 20:28

2 Answers2

17

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.
Nikita Volkov
  • 42,792
  • 11
  • 94
  • 169
7

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.

Tom Savage
  • 3,172
  • 4
  • 31
  • 31