[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode b2e19c9 318/385: document next steps
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode b2e19c9 318/385: document next steps |
Date: |
Tue, 5 Oct 2021 23:59:56 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit b2e19c997bbacad8a392ecdefef09f4a694e1f84
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
document next steps
---
haskell-tng-hsinspect.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/haskell-tng-hsinspect.el b/haskell-tng-hsinspect.el
index aa29f9c..b932922 100644
--- a/haskell-tng-hsinspect.el
+++ b/haskell-tng-hsinspect.el
@@ -35,12 +35,16 @@ A prefix argument ensures that caches are flushes."
(interactive "P")
(if-let* ((sym (haskell-tng--hsinspect-symbol-at-point))
(found (seq-find
+ ;; FIXME test for this
+ ;; TODO add type information too
(lambda (names) (member sym (seq-map #'cdr names)))
(haskell-tng--hsinspect-imports nil alt))))
;; TODO multiple hits
(popup-tip (format "%s" (cdar (last found)))))
(user-error "Not found"))
+;; FIXME jump-to-definition using import + index + heuristics
+
;;;###autoload
(defun haskell-tng-import-symbol-at-point (&optional alt)
"Import the symbol at point"
@@ -56,6 +60,7 @@ A prefix argument ensures that caches are flushes."
(if (string-match (rx bos (group (+ anything)) "." (group (+ (not (any
".")))) eos) sym)
(let* ((fqn (match-string 1 sym))
(sym (match-string 2 sym)))
+ ;; FIXME types and data constructors
(when-let (hit (haskell-tng--hsinspect-import-popup index sym))
(haskell-tng--import-symbol (car hit) fqn)))
(when-let (hit (haskell-tng--hsinspect-import-popup index sym))
@@ -73,6 +78,7 @@ A prefix argument ensures that caches are flushes."
(selected (popup-menu* entries)))
(seq-find (lambda (el) (equal (car el) selected)) hits))))
+;; FIXME this could be tested
(defun haskell-tng--hsinspect-import-candidates (index sym)
"Return a list of (module . symbol)"
;; TODO threading/do syntax
- [nongnu] elpa/haskell-tng-mode 64ec84d 260/385: if/then/else indentation, (continued)
- [nongnu] elpa/haskell-tng-mode 64ec84d 260/385: if/then/else indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1d53572 243/385: bugfixes, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d1e599a 285/385: switch formatting backend based on project config, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fd06b8f 264/385: move haskell-tng-newline into the -extra package, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8ff79e7 247/385: allow parallelism, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4e2cf00 284/385: simplify the installation of hsinspect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1107e63 274/385: bump hsinspect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8475578 311/385: typos, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f8d2b91 295/385: miss some false positive ghc errors, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fca5c6e 315/385: better docs and cabal-install support, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b2e19c9 318/385: document next steps,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode c39d0f4 321/385: some hsinspect tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5fe4cb1 359/385: cleanup test includes, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 38ed1b7 326/385: import types, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6d4e150 353/385: upgrade hsinspect version, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4f84cde 347/385: improve importing qualified symbols, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 86d9020 373/385: one hsinspect-lsp can be shared by all projects, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a98dda0 380/385: emacs 27 macro deprecations, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode aeaf363 220/385: bugfinding, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 9a7534e 262/385: bugfixes for abbrev, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 356f27b 278/385: more stable hsinspect calls, ELPA Syncer, 2021/10/06