[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 5892c04 232/385: small things
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 5892c04 232/385: small things |
Date: |
Tue, 5 Oct 2021 23:59:37 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 5892c04c2d5023f1802b8d985659513956e53ece
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
small things
---
haskell-tng-compile.el | 3 ++-
haskell-tng-contrib-company.el | 4 ++--
haskell-tng-hsinspect.el | 13 +++++--------
3 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/haskell-tng-compile.el b/haskell-tng-compile.el
index 6b1600a..1382d6d 100644
--- a/haskell-tng-compile.el
+++ b/haskell-tng-compile.el
@@ -62,7 +62,8 @@
(defvar haskell-tng--compile-history
;; Prefer --enable-tests due to
;; https://github.com/haskell/cabal/issues/6114
- '("cabal v2-build -O0 --enable-tests "
+ '("cabal v2-build -O0 --enable-tests :all:libraries"
+ "cabal v2-build -O0 --enable-tests "
"cabal v2-run -O0 --enable-tests tasty -- "))
(defvar-local haskell-tng--compile-command nil)
(defvar-local haskell-tng--compile-alt "cabal v2-clean")
diff --git a/haskell-tng-contrib-company.el b/haskell-tng-contrib-company.el
index da66a76..c53baae 100644
--- a/haskell-tng-contrib-company.el
+++ b/haskell-tng-contrib-company.el
@@ -26,8 +26,8 @@
(defcustom haskell-tng-company-backends
'(company-files
- haskell-tng--company-hsinspect
- (company-dabbrev-code company-keywords))
+ (company-dabbrev-code company-keywords)
+ haskell-tng--company-hsinspect)
"The company mode backends to use for haskell files"
:type 'listp
:group 'haskell-tng)
diff --git a/haskell-tng-hsinspect.el b/haskell-tng-hsinspect.el
index 5fcd3a8..37f1423 100644
--- a/haskell-tng-hsinspect.el
+++ b/haskell-tng-hsinspect.el
@@ -44,6 +44,8 @@ name of the symbol at point in the minibuffer."
(message "%s" (car (last found)))
(message "<not imported>")))
+;; FIXME implement the `.hsinspect.env' hack and document the workflow
+
;; TODO invalidate cache when imports section has changed
;; TODO is there a way to tell Emacs not to render this in `C-h v'?
;; (suggestion is to advise around describe-key)
@@ -66,14 +68,9 @@ t means the process failed.")
;; TODO launching the correct hsinspect-ghc-X version
;; TODO is there a way to pipe into a string not a buffer?
;; TODO async
- (if haskell-tng-hsinspect
- (car haskell-tng-hsinspect)
- "hsinspect")
+ "hsinspect"
nil "*hsinspect*" nil
- (append (when haskell-tng-hsinspect
- (append (cdr haskell-tng-hsinspect)
- '("hsinspect")))
- `("imports" ,buffer-file-name)
+ (append `("imports" ,buffer-file-name)
haskell-tng-hsinspect-langexts)))
(user-error "`hsinspect' failed. See the *hsinspect* buffer for more
information.")
(setq haskell-tng--hsinspect-imports
@@ -81,7 +78,7 @@ t means the process failed.")
(goto-char (point-min))
(re-search-forward (rx bol "(") nil t) ;; sometimes there is
junk from the launcher
(goto-char (match-beginning 0))
- (read (current-buffer))))))))
+ (or (ignore-errors (read (current-buffer))) t)))))))
(provide 'haskell-tng-hsinspect)
;;; haskell-tng-hsinspect.el ends here
- [nongnu] elpa/haskell-tng-mode 63225d5 374/385: use .ghc.path to find hsinspect, build tool agnostic, (continued)
- [nongnu] elpa/haskell-tng-mode 63225d5 374/385: use .ghc.path to find hsinspect, build tool agnostic, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3d1122b 116/385: notes on regexps, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c3793b2 176/385: canonical until macro, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b7cb5b9 214/385: starting to create imenu, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5306ae2 217/385: fix type faces with constraints, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5f81d6b 219/385: bump python version, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8f4d7fc 225/385: advice around smartparens workaround, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4cbf702 205/385: move third party deps to -contrib, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3ff278e 227/385: ability to not continue comments, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode dbcef71 235/385: workaround the env file situation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5892c04 232/385: small things,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 44dc467 248/385: notes on motivation, contributing and collaboration, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6f2b5ee 266/385: font lock CPP, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fdbd0a2 239/385: updates for hsinspect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b2e2c3a 293/385: stop stack from being an asshole, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ee07f6d 172/385: type indentation tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 59354b6 198/385: support hanging type alignment, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a788ab2 209/385: more efficient layout caching, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f7e8040 213/385: = ends a type sig, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fe9d65d 222/385: helper for yatemplates, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode bc93c3d 224/385: very alpha hsinspect support, ELPA Syncer, 2021/10/06