Skip to content

Instantly share code, notes, and snippets.

@shapr
Last active November 20, 2019 20:57
Show Gist options
  • Save shapr/586fb27ec7b0c1e05c6413693af99626 to your computer and use it in GitHub Desktop.
Save shapr/586fb27ec7b0c1e05c6413693af99626 to your computer and use it in GitHub Desktop.
;; 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