[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode efd8093 299/385: silent formatter errors
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode efd8093 299/385: silent formatter errors |
Date: |
Tue, 5 Oct 2021 23:59:52 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit efd809367f2a46636e78f9726da8acff48bc0fcc
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
silent formatter errors
---
haskell-tng-extra.el | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/haskell-tng-extra.el b/haskell-tng-extra.el
index 23b836c..a08c45c 100644
--- a/haskell-tng-extra.el
+++ b/haskell-tng-extra.el
@@ -67,32 +67,28 @@ When in a comment and called with a prefix, the comment
will be completed."
(defun haskell-tng-stylish-haskell ()
"Apply `stylish-haskell' rules."
;; TODO use https://github.com/purcell/reformatter.el
- ;; TODO error buffer should be easy to dismiss
(interactive)
(when (buffer-modified-p)
(save-buffer))
- (unless (= 0 (call-process "stylish-haskell" nil "*stylish-haskell*" nil
"-i" buffer-file-name))
- (pop-to-buffer "*stylish-haskell*" nil t))
- (revert-buffer t t t))
+ (when (= 0 (call-process "stylish-haskell" nil "*stylish-haskell*" nil "-i"
buffer-file-name))
+ (revert-buffer t t t)))
;;;###autoload
(defun haskell-tng-ormolu ()
"Apply `ormolu' rules."
;; TODO use https://github.com/purcell/reformatter.el
- ;; TODO error buffer should be easy to dismiss
;; TODO pass parameters via a buffer local variable
(interactive)
(when (buffer-modified-p)
(save-buffer))
- (unless (= 0 (call-process "ormolu" nil "*ormolu*" nil
+ (when (= 0 (call-process "ormolu" nil "*ormolu*" nil
;; "-p"
"-o" "-XTypeApplications"
"-o" "-XBangPatterns"
"-o" "-XPatternSynonyms"
"-m" "inplace"
buffer-file-name))
- (pop-to-buffer "*ormolu*" nil t))
- (revert-buffer t t t))
+ (revert-buffer t t t)))
;;;###autoload
(defun haskell-tng-stack2cabal ()
- [nongnu] elpa/haskell-tng-mode 19c03cc 254/385: company-mode shouldn't force an hsinspect call, (continued)
- [nongnu] elpa/haskell-tng-mode 19c03cc 254/385: company-mode shouldn't force an hsinspect call, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a947ef0 249/385: support for projects with custom Setup.hs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode dc7aabf 281/385: popup tooltips, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fb9174d 292/385: removing popup is futile, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1b4bf3b 294/385: improve the cabal defaults, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b2cd1c8 297/385: projectile-tags-command should be buffer local, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 7b45c25 298/385: guard file saving, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e245a93 296/385: allow opt-out of local history, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 411268e 310/385: improve hsinspect error messages, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 766480d 290/385: fast-tags should be project specific, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode efd8093 299/385: silent formatter errors,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 26c6828 291/385: fqn imports, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4480bb4 319/385: bump hsinspect/ghcflags versions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 99287ef 316/385: stack projectile defaults, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode dbb2b7a 350/385: block / return-from instead of catch / throw, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d611f0b 322/385: thots, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a717a50 331/385: allow workflow with qualified imports as default, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 70e649b 330/385: import qualified is even smarter, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5a064fd 328/385: hypen prefix asks to qualify the import, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c42b5c5 338/385: use url-copy-path instead of shelling out, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8405852 351/385: document bugs and ideas, ELPA Syncer, 2021/10/06