From a854a16377b7fe17b08f6e4c5a0a1db83ecad704 Mon Sep 17 00:00:00 2001 From: Daniel Brice Date: Sun, 23 Sep 2018 10:38:45 -0700 Subject: [PATCH] Add build defs for ghc and stack... The Stack build definition probably doens't work with template Haskell or multi-package projects. Needs testing. --- Haskell-no-code.sublime-build | 5 +++++ Haskell-stack.sublime-build | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 Haskell-no-code.sublime-build create mode 100644 Haskell-stack.sublime-build diff --git a/Haskell-no-code.sublime-build b/Haskell-no-code.sublime-build new file mode 100644 index 0000000..a1b931a --- /dev/null +++ b/Haskell-no-code.sublime-build @@ -0,0 +1,5 @@ +{ + "shell_cmd": "ghc -fno-code \"$file\"", + "file_regex": "^(...*?):([0-9]*):?([0-9]*)", + "selector": "source.haskell" +} diff --git a/Haskell-stack.sublime-build b/Haskell-stack.sublime-build new file mode 100644 index 0000000..4d05ee6 --- /dev/null +++ b/Haskell-stack.sublime-build @@ -0,0 +1,5 @@ +{ + "shell_cmd": "stack exec ghc -- -fno-code \"$file\"", + "file_regex": "^(...*?):([0-9]*):?([0-9]*)", + "selector": "source.haskell" +}