It's a bit fragile, more than a bit slow, and it's not worth the grief.
-
Emacs
- Install haskell-mode
- Install flycheck
- Enable and configure Haskell, this can be just
(require 'haskell)
if you don't care about anything else. - Enable flycheck
- Symlink Stack to
/usr/bin
or otherwise make sure flycheck can find it - dunzo.
-
Vim
- We recommend Stephen Diehl's vim instructions but we suggest replacing ghc-mod with the below for now.
- For getting type errors in vim reliably (in lieu of ghc-mod)
autocmd FileType haskell setlocal makeprg=stack\ build
autocmd FileType haskell setlocal errorformat=%f:%l:%v:%m
from: https://github.com/ishiy1993/dotfiles/blob/master/.vimrc
-
Notepad++ has basic Haskell support built in.
-
gedit has basic Haskell support built in.
- Haskell For Mac