From 8eaa77652163284bd81d92ab8edbea7d2b4e9631 Mon Sep 17 00:00:00 2001 From: Chris Allen Date: Wed, 10 Feb 2016 13:37:00 -0600 Subject: [PATCH] Update tools.md --- tools.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools.md b/tools.md index 36cb3f9..62f8529 100644 --- a/tools.md +++ b/tools.md @@ -18,7 +18,12 @@ It's a bit fragile, more than a bit slow, and it's not worth the grief. - 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. - - For getting type errors in vim reliably (in lieu of ghc-mod): https://github.com/ishiy1993/dotfiles/blob/master/.vimrc#L176-L177 + - 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 - [Sublime Text](https://github.com/SublimeHaskell/SublimeHaskell)