Permalink
Browse files

Don't build with ghc_mod when enable_ghc_mod setting is false

  • Loading branch information...
1 parent 1f743d6 commit 58eb232710710b77c3920a1c0c814cb8ed31a3d4 @nh2 nh2 committed Mar 29, 2013
Showing with 7 additions and 6 deletions.
  1. +7 −6 autobuild.py
View
@@ -18,12 +18,13 @@ def on_post_save(self, view):
if auto_build_enabled and cabal_project_dir is not None:
view.window().run_command('sublime_haskell_build_auto')
# try to ghc-mod check
- elif auto_check_enabled and auto_lint_enabled:
- view.window().run_command('sublime_haskell_ghc_mod_check_and_lint')
- elif auto_check_enabled:
- view.window().run_command('sublime_haskell_ghc_mod_check')
- elif auto_lint_enabled:
- view.window().run_command('sublime_haskell_ghc_mod_lint')
+ elif get_setting('enable_ghc_mod'):
+ if auto_check_enabled and auto_lint_enabled:
+ view.window().run_command('sublime_haskell_ghc_mod_check_and_lint')
+ elif auto_check_enabled:
+ view.window().run_command('sublime_haskell_ghc_mod_check')
+ elif auto_lint_enabled:
+ view.window().run_command('sublime_haskell_ghc_mod_lint')
def current_cabal_build():

0 comments on commit 58eb232

Please sign in to comment.