haskell layer: disable ghc-check.el overlays with flycheck enabledcc

This commit is contained in:
syl20bnr 2015-03-28 20:45:25 -04:00
parent 2f27a31176
commit f56c035dea

View file

@ -196,10 +196,12 @@
(defun haskell-hook () (defun haskell-hook ()
(ghc-init) (ghc-init)
;; Use advanced indention ;; Use advanced indention
(if (not haskell-enable-shm-support) ;; (if (not haskell-enable-shm-support)
(turn-on-haskell-indentation) ;; (turn-on-haskell-indentation))
) (when (configuration-layer/package-declaredp 'flycheck)
) ;; remove overlays from ghc-check.el if flycheck is enabled
(set-face-attribute 'ghc-face-error nil :underline nil)
(set-face-attribute 'ghc-face-warn nil :underline nil)))
;; Useful to have these keybindings for .cabal files, too. ;; Useful to have these keybindings for .cabal files, too.
(defun haskell-cabal-hook () (defun haskell-cabal-hook ()