[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 5c157fb 255/385: rigid ormolu support
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 5c157fb 255/385: rigid ormolu support |
Date: |
Tue, 5 Oct 2021 23:59:42 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 5c157fb5ba3ec6599445dcaf013a6f4d05bd863a
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
rigid ormolu support
---
haskell-tng-contrib.el | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/haskell-tng-contrib.el b/haskell-tng-contrib.el
index cc2ec16..c4123c6 100644
--- a/haskell-tng-contrib.el
+++ b/haskell-tng-contrib.el
@@ -31,6 +31,23 @@
(revert-buffer t t t))
;;;###autoload
+(defun haskell-tng-stylish-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)
+ (save-buffer)
+ (unless (= 0 (call-process "ormolu" nil "*ormolu*" nil
+ "-o" "-XTypeApplications"
+ "-o" "-XBangPatterns"
+ "-o" "-XPatternSynonyms"
+ "-c" "-m" "inplace"
+ buffer-file-name))
+ (pop-to-buffer "*ormolu*" nil t))
+ (revert-buffer t t t))
+
+;;;###autoload
(defun haskell-tng-stack2cabal ()
"Prepare a stack project for use with cabal."
(interactive)
- [nongnu] elpa/haskell-tng-mode 2017d07 384/385: widen hsinspect range, (continued)
- [nongnu] elpa/haskell-tng-mode 2017d07 384/385: widen hsinspect range, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 083e80a 110/385: assert on alternative indentation order, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ec1ac46 361/385: document a bug, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4b598b2 377/385: third party tools use project specific PATH, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode aaf7c55 370/385: support for hsinspect-lsp, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b3e6c9a 113/385: compilation mode regression tests vs haskell-mode, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 99a7f10 337/385: cleanup, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e6d8761 343/385: local jump-to-definition should error, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c31afdb 272/385: missing CPP case, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 85c4dd5 233/385: fix bugfix in goto-import, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5c157fb 255/385: rigid ormolu support,
ELPA Syncer <=
- [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