[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode f59c9ee 259/385: fix indentation of short
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode f59c9ee 259/385: fix indentation of short type signatures |
Date: |
Tue, 5 Oct 2021 23:59:43 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit f59c9eec852c4c7be922365e0f513484740aabfc
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
fix indentation of short type signatures
---
haskell-tng-smie.el | 3 ++-
test/haskell-tng-indent-test.el | 1 -
test/src/indentation.hs.append.indent | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index 8f85057..ec65586 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -272,7 +272,8 @@ information, to aid in the creation of new rules."
"|")
((and (member parent '("::" "=>"))
- (< (seq-count (lambda (it) (equal it "=>")) prevline) 2)
+ (or (not (member "=>" prevline))
+ (equal "=>" (car prevline)))
(not (haskell-tng--smie-prev-line-blank-p)))
"=>")
diff --git a/test/haskell-tng-indent-test.el b/test/haskell-tng-indent-test.el
index 6e4fccb..f5f5ac2 100644
--- a/test/haskell-tng-indent-test.el
+++ b/test/haskell-tng-indent-test.el
@@ -12,7 +12,6 @@
(require 'haskell-tng-testutils
"test/haskell-tng-testutils.el")
-;; FIXME types_short
;; TODO line after `instance ... where' has too much indent
;; TODO records assigning / copy by label
;; TODO records of functions
diff --git a/test/src/indentation.hs.append.indent
b/test/src/indentation.hs.append.indent
index 88c37c0..b64a416 100644
--- a/test/src/indentation.hs.append.indent
+++ b/test/src/indentation.hs.append.indent
@@ -303,6 +303,6 @@ v 1
v 1
types_short :: Foo -> Bar
-1 v
+v
v
\ No newline at end of file
- [nongnu] elpa/haskell-tng-mode 2f2c500 354/385: defining a test spec, (continued)
- [nongnu] elpa/haskell-tng-mode 2f2c500 354/385: defining a test spec, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 232baf8 362/385: less import suggestions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ab53433 375/385: reprioritise, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 2b9c6bf 369/385: support dev hsinspect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 68d1d7c 371/385: bump hsinspect, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6a31b59 101/385: document the plan for indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 9ec4841 104/385: meh indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ea46850 207/385: bugfix for compile vs runtime loading, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 63b1c8d 250/385: flip the default newline / comment behaviour, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 83458d6 253/385: reverting newline comment behaviour, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f59c9ee 259/385: fix indentation of short type signatures,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode dbbe488 265/385: abbrevs don't fire in comments / strings, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f56bd2a 256/385: prefer optimised hsinspect builds, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e84970b 263/385: rename -contrib to -extra, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode af443a1 269/385: fix a name clash in the tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode cce466c 271/385: hsinspect now has a compiler plugin, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d0cd9b9 252/385: documenting an annoying indentation bug, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode afbac7c 300/385: missing import, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 7060573 286/385: moar work to do here, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 89db192 289/385: more thots, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b46dbd1 305/385: refactoring of the cache for more reuse later, ELPA Syncer, 2021/10/06