From 2652b0e830568989c0e8f7b8d1ec4bdf7f3e1e1f Mon Sep 17 00:00:00 2001 From: Daniel Selinger Date: Thu, 28 Jan 2016 23:28:00 +0100 Subject: [PATCH] Added ignores for files written by stack and cabal --- haskell-commands.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haskell-commands.el b/haskell-commands.el index 25462c8dd..f63f2f492 100644 --- a/haskell-commands.el +++ b/haskell-commands.el @@ -712,7 +712,7 @@ function `xref-find-definitions' after new table was generated." (format ":!cd %s && %s | %s" (haskell-session-cabal-dir (haskell-process-session (car state))) - "find . -type f \\( -name '*.hs' -or -name '*.lhs' -or -name '*.hsc' \\) -not \\( -name '#*' -or -name '.*' \\) -print0" + "find . -type d \\( -path ./.stack-work -o -path ./dist -o -path ./.cabal-sandbox \\) -prune -o -type f \\( -name '*.hs' -or -name '*.lhs' -or -name '*.hsc' \\) -not \\( -name '#*' -or -name '.*' \\) -print0" "xargs -0 hasktags -e -x")))) :complete (lambda (state _response) (when (cdr state)