Skip to content

Commit

Permalink
Removed Cabal/CabalDev specific commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvoidex committed Jan 18, 2013
1 parent d4fcf62 commit c78c68a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 116 deletions.
50 changes: 0 additions & 50 deletions Cabal.sublime-commands

This file was deleted.

66 changes: 0 additions & 66 deletions cabalbuild.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -293,71 +293,6 @@ def write_output(window, text, base_dir):
def hide_output(window): def hide_output(window):
window.run_command('hide_panel', {'panel': 'output.' + OUTPUT_PANEL_NAME}) 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): def run_build_commands_with(msg, cmds):
"""Run general build commands""" """Run general build commands"""
window, view, file_shown_in_view = get_haskell_command_window_view_file_project() window, view, file_shown_in_view = get_haskell_command_window_view_file_project()
Expand All @@ -372,7 +307,6 @@ def run_build_commands_with(msg, cmds):


run_chain_build_thread(view, cabal_project_dir, msg(cabal_project_name), cmds) run_chain_build_thread(view, cabal_project_dir, msg(cabal_project_name), cmds)



def run_build_command_with(msg, cmd): def run_build_command_with(msg, cmd):
"""Run one command""" """Run one command"""
run_build_commands_with(msg, [cmd]) run_build_commands_with(msg, [cmd])

0 comments on commit c78c68a

Please sign in to comment.