Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions haskell-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
(require 'haskell-presentation-mode)
(require 'haskell-utils)
(require 'highlight-uses-mode)
(require 'haskell-customize)

;;;###autoload
(defun haskell-process-restart ()
Expand Down Expand Up @@ -702,11 +703,11 @@ function `xref-find-definitions' after new table was generated."
(haskell-session-cabal-dir (haskell-process-session (car state)))))
(haskell-process-send-string
(car state)
(format ":!cd %s && %s | %s"
(format ":!cd %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"
"xargs -0 hasktags -e -x"))))
haskell-tags-command
))))
:complete (lambda (state _response)
(when (cdr state)
(let ((session-tags
Expand Down
7 changes: 7 additions & 0 deletions haskell-customize.el
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@ same vein as `haskell-indent-spaces'."
:group 'haskell
:type '(repeat 'string))

;;;###autoload
(defcustom haskell-tags-command
"find . -type f \\( -name '*.hs' -or -name '*.lhs' -or -name '*.hsc' \\) -not \\( -name '#*' -or -name '.*' \\) -print0 | xargs -0 hasktags -e -x"
"Command to run from the project root to find haskell files and generate a TAGS file"
:type 'string
:group 'haskell)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Accessor functions
Expand Down