Skip to content

Commit 560859a

Browse files
committed
Merge pull request #1118 from sourcy/hasktags-ignore-buildfiles
Ignore stack and cabal files from hasktags
2 parents bcfe134 + 2652b0e commit 560859a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell-commands.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ function `xref-find-definitions' after new table was generated."
712712
(format ":!cd %s && %s | %s"
713713
(haskell-session-cabal-dir
714714
(haskell-process-session (car state)))
715-
"find . -type f \\( -name '*.hs' -or -name '*.lhs' -or -name '*.hsc' \\) -not \\( -name '#*' -or -name '.*' \\) -print0"
715+
"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"
716716
"xargs -0 hasktags -e -x"))))
717717
:complete (lambda (state _response)
718718
(when (cdr state)

0 commit comments

Comments
 (0)