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

    stylish haskell outputs failures
---
 haskell-tng-contrib.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/haskell-tng-contrib.el b/haskell-tng-contrib.el
index c133b76..5bc1f2e 100644
--- a/haskell-tng-contrib.el
+++ b/haskell-tng-contrib.el
@@ -20,7 +20,8 @@
   "Apply `stylish-haskell' rules."
   (interactive)
   (save-buffer)
-  (call-process "stylish-haskell" nil nil nil "-i" buffer-file-name)
+  (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))
 
 ;;;###autoload

Reply via email to