Sublime Text plugin for stack-ide
Bleeding edge note:
Requires stack
0.1.6+, stack-ide
0.1+, ide-backend
HEAD and GHC 7.10+.
stack-ide-sublime
also requires for the moment that you are opening the same folder that holds the .cabal
file, and that the folder is named the same as the .cabal
file.
First make sure to install stack and stack-ide.
On OSX install this package with the following command:
(cd "~/Library/Application Support/Sublime Text 3/Packages"; git clone https://github.com/lukexi/stack-ide-sublime.git SublimeStackIDE)
On Linux install this package with the following command:
(cd ~/.config/sublime-text-3/Packages; git clone https://github.com/lukexi/stack-ide-sublime.git SublimeStackIDE)
On Windows install this package with the following command:
(cd $APPDATA/Sublime\ Text\ 3/Packages/; git clone https://github.com/lukexi/stack-ide-sublime.git SublimeStackIDE)
Add the following to your global User Preferences (Sublime Text -> Preferences -> Settings - User):
"folder_exclude_patterns": [".git", ".svn", "CVS", ".stack-work", "session.*"],
First check the Sublime Text console with `ctrl-``. You can increase the plugin's log level by changing the "verbosity" setting in SublimeStackIDE.sublime-settings to "debug". Let us know what you see and we'll get it fixed.
Add modules (eg. Main) to the executable target's other-modules
list in the cabal file.
executable helloworld-exe
hs-source-dirs: app
other-modules: Main
main-is: Main.hs
After restarting Stack IDE you should see the listed modules being compiled (see commercialhaskell/stack-ide#28)
This was a problem in stack 1.3, upgrade to a newer version (see: #13)