Permalink
Browse files

Convert all line endings to Unix

  • Loading branch information...
1 parent 4b78c6e commit a544e9fde1e1496ae2eef4c420a70f4a9b6d89e5 @nh2 nh2 committed Jan 12, 2013
Showing with 978 additions and 978 deletions.
  1. +35 −35 autobuild.py
  2. +643 −643 autocomplete.py
  3. +300 −300 sublime_haskell_common.py
View
@@ -1,35 +1,35 @@
-import sublime_plugin
-
-from sublime_haskell_common import attach_sandbox, get_cabal_project_dir_and_name_of_view, get_setting
-
-
-class SublimeHaskellAutobuild(sublime_plugin.EventListener):
- def on_post_save(self, view):
- auto_build_enabled = get_setting('enable_auto_build')
- auto_check_enabled = get_setting('enable_auto_check')
- auto_lint_enabled = get_setting('enable_auto_lint')
- cabal_project_dir, cabal_project_name = get_cabal_project_dir_and_name_of_view(view)
-
- # auto build enabled and file within a cabal project
- 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')
-
-
-def current_cabal_build():
- """Current cabal build command"""
- args = []
- if get_setting('use_cabal_dev'):
- args += ['cabal-dev']
- else:
- args += ['cabal']
-
- args += ['build']
-
- return attach_sandbox(args)
+import sublime_plugin
+
+from sublime_haskell_common import attach_sandbox, get_cabal_project_dir_and_name_of_view, get_setting
+
+
+class SublimeHaskellAutobuild(sublime_plugin.EventListener):
+ def on_post_save(self, view):
+ auto_build_enabled = get_setting('enable_auto_build')
+ auto_check_enabled = get_setting('enable_auto_check')
+ auto_lint_enabled = get_setting('enable_auto_lint')
+ cabal_project_dir, cabal_project_name = get_cabal_project_dir_and_name_of_view(view)
+
+ # auto build enabled and file within a cabal project
+ 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')
+
+
+def current_cabal_build():
+ """Current cabal build command"""
+ args = []
+ if get_setting('use_cabal_dev'):
+ args += ['cabal-dev']
+ else:
+ args += ['cabal']
+
+ args += ['build']
+
+ return attach_sandbox(args)
Oops, something went wrong.

0 comments on commit a544e9f

Please sign in to comment.