[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode fdbd0a2 239/385: updates for hsinspect
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode fdbd0a2 239/385: updates for hsinspect |
Date: |
Tue, 5 Oct 2021 23:59:39 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit fdbd0a2822e6f1401b28a21f2bd03a3969abf571
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
updates for hsinspect
---
README.md | 2 --
haskell-tng-contrib-company.el | 2 +-
haskell-tng-hsinspect.el | 9 ++++++---
test/haskell-tng-indent-test.el | 1 +
4 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 6d0afc4..0b6486b 100644
--- a/README.md
+++ b/README.md
@@ -61,8 +61,6 @@ The optional command line tool
[`hsinspect`](https://gitlab.com/tseenshe/hsinspe
For now, only one version of `ghc` is supported at a time (change `ghc-8.4.4`
to your current `ghc` version):
```
-git clone https://gitlab.com/tseenshe/hsinspect.git
-cd hsinspect
cabal v2-install hsinspect --overwrite-policy=always -w ghc-8.4.4
```
diff --git a/haskell-tng-contrib-company.el b/haskell-tng-contrib-company.el
index 06e50cc..4d78e98 100644
--- a/haskell-tng-contrib-company.el
+++ b/haskell-tng-contrib-company.el
@@ -53,7 +53,7 @@
('candidates
;;(message "TNG asked with %S" arg)
(seq-mapcat
- (lambda (names) (all-completions arg names))
+ (lambda (names) (all-completions arg (seq-map #'cdr names)))
(haskell-tng--hsinspect-imports)))
('sorted t)
('duplicates t)
diff --git a/haskell-tng-hsinspect.el b/haskell-tng-hsinspect.el
index bed4908..81a73a7 100644
--- a/haskell-tng-hsinspect.el
+++ b/haskell-tng-hsinspect.el
@@ -23,11 +23,14 @@ name of the symbol at point in the minibuffer."
(interactive) ;; TODO prefix should copy to kill ring
(if-let* ((sym (symbol-name (symbol-at-point)))
(found (seq-find
- (lambda (names) (member sym names))
+ (lambda (names) (member sym (seq-map #'cdr names)))
(haskell-tng--hsinspect-imports))))
;; TODO multiple hits
+ ;; TODO feedback when hsinspect is broken
(message "%s" (car (last found)))
- (message "<not imported>")))
+ (if (eq t haskell-tng--hsinspect-imports)
+ (error "hsinspect is not available")
+ (message "<not imported>"))))
(defvar haskell-tng-hsinspect
(concat
@@ -79,7 +82,7 @@ t means the process failed.")
;; TODO async
"hsinspect"
nil "*hsinspect*" nil
- (append `("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
diff --git a/test/haskell-tng-indent-test.el b/test/haskell-tng-indent-test.el
index c7ed10b..f5f5ac2 100644
--- a/test/haskell-tng-indent-test.el
+++ b/test/haskell-tng-indent-test.el
@@ -12,6 +12,7 @@
(require 'haskell-tng-testutils
"test/haskell-tng-testutils.el")
+;; TODO line after `instance ... where' has too much indent
;; TODO records assigning / copy by label
;; TODO records of functions
;; TODO if/then/else
- [nongnu] elpa/haskell-tng-mode b7cb5b9 214/385: starting to create imenu, (continued)
- [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, 2021/10/06
- [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 <=
- [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
- [nongnu] elpa/haskell-tng-mode 658ddb6 251/385: docs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 73a60f5 309/385: cache `which hsinspect` per project, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5707166 365/385: use new ghcflags-provided PATH, ELPA Syncer, 2021/10/06