Permalink
Browse files

Removed Cabal/CabalDev specific commands.

  • Loading branch information...
1 parent d4fcf62 commit c78c68ad5b44ce2db50967367290eff51d2e5a8b @mvoidex mvoidex committed Jan 18, 2013
Showing with 0 additions and 116 deletions.
  1. +0 −50 Cabal.sublime-commands
  2. +0 −66 cabalbuild.py
View
@@ -1,50 +0,0 @@
-[
- {
- "caption": "Cabal: Build",
- "command": "sublime_haskell_cabal_build"
- },
- {
- "caption": "Cabal: Typecheck build (no codegen)",
- "command": "sublime_haskell_cabal_check_build"
- },
- {
- "caption": "Cabal: Clean",
- "command": "sublime_haskell_cabal_clean"
- },
- {
- "caption": "Cabal: Configure",
- "command": "sublime_haskell_cabal_configure"
- },
- {
- "caption": "Cabal: Rebuild",
- "command": "sublime_haskell_cabal_rebuild"
- },
- {
- "caption": "Cabal: Install",
- "command": "sublime_haskell_cabal_install"
- },
- {
- "caption": "Cabal-Dev: Build",
- "command": "sublime_haskell_cabal_dev_build"
- },
- {
- "caption": "Cabal-Dev: Typecheck build (no codegen)",
- "command": "sublime_haskell_cabal_dev_check_build"
- },
- {
- "caption": "Cabal-Dev: Clean",
- "command": "sublime_haskell_cabal_dev_clean"
- },
- {
- "caption": "Cabal-Dev: Configure",
- "command": "sublime_haskell_cabal_dev_configure"
- },
- {
- "caption": "Cabal-Dev: Rebuild",
- "command": "sublime_haskell_cabal_dev_rebuild"
- },
- {
- "caption": "Cabal-Dev: Install",
- "command": "sublime_haskell_cabal_dev_install"
- }
-]
View
@@ -293,71 +293,6 @@ def write_output(window, text, base_dir):
def hide_output(window):
window.run_command('hide_panel', {'panel': 'output.' + OUTPUT_PANEL_NAME})
-
-# Cabal build system
-
-class SublimeHaskellCabalClean(SublimeHaskellBaseCommand):
- def run(self):
- self.build('clean', False)
-
-
-class SublimeHaskellCabalConfigure(SublimeHaskellBaseCommand):
- def run(self):
- self.build('configure', False)
-
-
-class SublimeHaskellCabalBuild(SublimeHaskellBaseCommand):
- def run(self):
- self.build('build_then_warnings', False)
-
-
-class SublimeHaskellCabalTypecheck(SublimeHaskellBaseCommand):
- def run(self):
- self.build('typecheck_then_warnings', False)
-
-
-class SublimeHaskellCabalRebuild(SublimeHaskellBaseCommand):
- def run(self):
- self.build('rebuild', False)
-
-
-class SublimeHaskellCabalInstall(SublimeHaskellBaseCommand):
- def run(self):
- self.build('install', False)
-
-
-# Cabal-Dev build system
-
-class SublimeHaskellCabalDevClean(SublimeHaskellBaseCommand):
- def run(self):
- self.build('clean', True)
-
-
-class SublimeHaskellCabalDevConfigure(SublimeHaskellBaseCommand):
- def run(self):
- self.build('configure', True)
-
-
-class SublimeHaskellCabalDevBuild(SublimeHaskellBaseCommand):
- def run(self):
- self.build('build_then_warnings', True)
-
-
-class SublimeHaskellCabalDevTypecheck(SublimeHaskellBaseCommand):
- def run(self):
- self.build('typecheck_then_warnings', True)
-
-
-class SublimeHaskellCabalDevRebuild(SublimeHaskellBaseCommand):
- def run(self):
- self.build('rebuild', True)
-
-
-class SublimeHaskellCabalDevInstall(SublimeHaskellBaseCommand):
- def run(self):
- self.build('install', True)
-
-
def run_build_commands_with(msg, cmds):
"""Run general build commands"""
window, view, file_shown_in_view = get_haskell_command_window_view_file_project()
@@ -372,7 +307,6 @@ def run_build_commands_with(msg, cmds):
run_chain_build_thread(view, cabal_project_dir, msg(cabal_project_name), cmds)
-
def run_build_command_with(msg, cmd):
"""Run one command"""
run_build_commands_with(msg, [cmd])

0 comments on commit c78c68a

Please sign in to comment.