learnhaskell/tools.md

42 lines
1.4 KiB
Markdown
Raw Normal View History

2016-01-31 07:19:54 +00:00
# Tools
## Don't install or try to use ghc-mod if you're a beginner
It's a bit fragile, more than a bit slow, and it's not worth the grief.
## Text Editors
- Emacs
- [Install haskell-mode](https://github.com/bitemyapp/dotfiles/blob/master/.emacs#L31)
- [Install flycheck](https://github.com/bitemyapp/dotfiles/blob/master/.emacs#L29)
- Enable and configure Haskell, this can be just `(require 'haskell)` if you don't care about anything else.
- [Enable flycheck](https://github.com/bitemyapp/dotfiles/blob/master/.emacs#L97)
- Symlink Stack to `/usr/bin` or otherwise make sure flycheck can find it
- [dunzo.](https://twitter.com/bitemyapp/status/693621160571985920)
2016-02-10 19:35:57 +00:00
- Vim
- We recommend [Stephen Diehl's vim instructions](http://www.stephendiehl.com/posts/vim_2016.html) but we suggest replacing ghc-mod with the below for now.
2016-02-10 19:37:00 +00:00
- For getting type errors in vim reliably (in lieu of ghc-mod)
2016-02-10 19:37:33 +00:00
```
autocmd FileType haskell setlocal makeprg=stack\ build
autocmd FileType haskell setlocal errorformat=%f:%l:%v:%m
```
2016-02-10 19:37:43 +00:00
from: https://github.com/ishiy1993/dotfiles/blob/master/.vimrc
2016-01-31 07:19:54 +00:00
- [Sublime Text](https://github.com/SublimeHaskell/SublimeHaskell)
- [Atom](https://atom.io/packages/ide-haskell)
- [IntelliJ](https://github.com/carymrobbins/intellij-haskforce)
- Notepad++ has basic Haskell support built in.
- gedit has basic Haskell support built in.
## Other
- Haskell For Mac