Last active
November 20, 2019 20:57
-
-
Save shapr/586fb27ec7b0c1e05c6413693af99626 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; haskell | |
(use-package haskell-mode | |
:ensure t | |
:init | |
(progn | |
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) | |
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent) | |
(add-hook 'haskell-mode-hook 'interactive-haskell-mode) | |
(setq haskell-process-args-cabal-new-repl | |
'("--ghc-options=-ferror-spans -fshow-loaded-modules")) | |
(setq haskell-process-type 'cabal-new-repl) | |
(setq haskell-stylish-on-save 't) | |
(setq haskell-tags-on-save 't) | |
)) | |
(use-package flycheck-haskell | |
:ensure t | |
:config | |
(add-hook 'flycheck-mode-hook #'flycheck-haskell-setup) | |
(eval-after-load 'haskell-mode-hook 'flycheck-mode)) | |
(use-package flymake-hlint | |
:ensure t | |
:config | |
(add-hook 'haskell-mode-hook 'flymake-hlint-load)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment