emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-tng-mode 5251477 186/385: thots


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-tng-mode 5251477 186/385: thots
Date: Tue, 5 Oct 2021 23:59:28 -0400 (EDT)

branch: elpa/haskell-tng-mode
commit 52514776abb5d16f51aa6d524159ade1b011ddcf
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>

    thots
---
 README.md           | 20 ++++++++++++++------
 haskell-tng-smie.el |  2 ++
 2 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 0d69112..594dfb7 100644
--- a/README.md
+++ b/README.md
@@ -50,15 +50,13 @@ This is the status of core features:
 - Navigation:
   - [x] performance-minded `syntax-table`
   - [x] `font-lock` to visually distinguish types and values
-  - [x] `sexp` navigation (SMIE)
+  - [x] `sexp` navigation
   - [x] `projectile` / [`fast-tags`](https://github.com/elaforge/fast-tags) 
integration for `TAGS`
   - [ ] `imenu` population
 - Editing:
-  - [ ] indentation (SMIE) (IN PROGRESS)
+  - [x] indentation
   - [ ] `abbrev` table
   - [ ] `yasnippet` templates
-  - [ ] quick add `LANGUAGE` (with auto-populated completions from ghc)
-  - [ ] quick add `import`
   - [x] `prettify-symbols` emulating `UnicodeSyntax`
   - [x] `stylish-haskell` support
 - Compiling:
@@ -70,9 +68,18 @@ Compatibility with `lsp-mode` / 
[`haskell-ide-engine`](https://github.com/haskel
 
 ## Future Plans
 
-Some blue sky features are being considered but may be best as independent 
projects:
+Semantic tooling will likely take the form of a standalone cli tool that is 
called from Emacs.
+
+The highest priority features are:
+
+1. fully qualified name and type of symbol at point
+2. search for symbol and typesig (e.g. import symbol at point)
+3. jump to source of symbol at point
+
+Blue sky features:
 
 - Imports
+  - quick manual add `import`
   - company-mode backend specific to import sections that detect context, 
powered by local hoogle cli
   - expand import list into explicit list (perhaps via `:browse` but better as 
standalone tool) for symbol-at-point (assuming no shadowing).
   - convert wildcard import to explicit list
@@ -83,6 +90,7 @@ Some blue sky features are being considered but may be best 
as independent proje
   - local cli search
   - local / remote search with doc in browser
 - `.cabal` editing / navigation
+  - add `LANGUAGE` (with auto-populated completions from ghc)
   - helpers to generate version bounds, even if it's just expanding the latest 
version of a package `cabal gen-bounds`, `cabal outdated`, `cabal-plan`.
   - project wide grep (including dependencies).
   - add `build-depends` based on FQNs and a local index of hackage.
@@ -99,7 +107,7 @@ Some blue sky features are being considered but may be best 
as independent proje
 - [visualise values as 
types](https://twitter.com/jyothsnasrin/status/1039530556080283648)
 - [`djinn`](https://hackage.haskell.org/package/djinn) / 
[`justdoit`](https://hackage.haskell.org/package/ghc-justdoit) integration
 - [`pointfree`](https://hackage.haskell.org/package/pointfree) integration
-- is there a solution to thinking "right to left" vs writing "left to right"?
+- is there a solution to thinking "right to left" vs writing "left to right"? 
(easy left token movement?)
 - identify trivial / helper functions and forward their `edit-definition` to 
another location.
 - Code gen
   - `instance` boilerplate (populate `where` with functions that are needed)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index d640e3a..f6a2b70 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -467,6 +467,8 @@ Inspired by `smie-indent--parent', which can only be used in
           (push (car tok) tokens)))
       (reverse tokens))))
 
+;; TODO smie-powered non-indentation features, e.g. sort-list
+
 ;; SMIE wishlist, in order of desirability:
 ;;
 ;; 1. if the lexer could return lists of tokens.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]