From b20736c9b7942b428e30b45807e14daf7b7d6665 Mon Sep 17 00:00:00 2001 From: Joseph Morag Date: Sun, 30 May 2021 11:07:29 -0400 Subject: [PATCH] Add haskell gitignore template --- .../templates/gitignore-mode/__ | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/modules/editor/file-templates/templates/gitignore-mode/__ b/modules/editor/file-templates/templates/gitignore-mode/__ index ef1380d91c4..8f35059db21 100644 --- a/modules/editor/file-templates/templates/gitignore-mode/__ +++ b/modules/editor/file-templates/templates/gitignore-mode/__ @@ -3,7 +3,7 @@ *.log tmp/ -`(let ((type-ignore (yas-choose-value '("(none)" "python" "ruby" "java" "js")))) +`(let ((type-ignore (yas-choose-value '("(none)" "python" "ruby" "java" "js" "haskell")))) (string-join (cond ((string= type-ignore "python") '("*.py[cod]" @@ -27,5 +27,29 @@ tmp/ "yarn-error.log*" "*.tsbuildinfo" ".npm" - ".eslintcache"))) + ".eslintcache")) + ((string= type-ignore "haskell") + '("dist" + "dist-*" + "cabal-dev" + "*.o" + "*.hi" + "*.hie" + "*.chi" + "*.chs.h" + "*.dyn_o" + "*.dyn_hi" + ".hpc" + ".hsenv" + ".cabal-sandbox/" + "cabal.sandbox.config" + "*.prof" + "*.aux" + "*.hp" + "*.eventlog" + ".stack-work/" + "cabal.project.local" + "cabal.project.local~" + ".HTF/" + ".ghc.environment.*"))) "\n"))`