branch: elpa/haskell-tng-mode commit 9b334f7e1ce5da671171090d9e93fde7a7e546b8 Author: Tseen She <ts33n....@gmail.com> Commit: Tseen She <ts33n....@gmail.com>
ghcflags --- README.md | 8 +++----- haskell-tng-extra.el | 3 ++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4f3e9c5..d5ab541 100644 --- a/README.md +++ b/README.md @@ -73,12 +73,10 @@ for V in 8.4.4 8.6.5 ; do done ``` -And add the compiler plugin to every project you plan to inspect: +And add the `ghcflags` compiler plugin to every project you plan to inspect: -1. add a dependency on `hsinspect` -2. add `-fplugin HsInspect.Plugin` to `ghc-options` - -`hsinspect` only works when the dependencies of the current file have been compiled (the current file doesn't need to be compilable). +1. add a `build-depends` on `ghcflags` +2. add `-fplugin GhcFlags.Plugin` to `ghc-options` The `haskell-tng-extra-company` package will automatically complete symbols that are in scope. diff --git a/haskell-tng-extra.el b/haskell-tng-extra.el index 0e5e806..48fe0da 100644 --- a/haskell-tng-extra.el +++ b/haskell-tng-extra.el @@ -73,10 +73,11 @@ When in a comment and called with a prefix, the comment will be completed." (interactive) (save-buffer) (unless (= 0 (call-process "ormolu" nil "*ormolu*" nil + ;; "-p" "-o" "-XTypeApplications" "-o" "-XBangPatterns" "-o" "-XPatternSynonyms" - "-c" "-m" "inplace" + "-m" "inplace" buffer-file-name)) (pop-to-buffer "*ormolu*" nil t)) (revert-buffer t t t))