summaryrefslogtreecommitdiffhomepage
path: root/README.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 88df2b7..a3406c6 100644
--- a/README.markdown
+++ b/README.markdown
@@ -112,6 +112,16 @@ Or you can define `formatprg`
and then use `gq`.
+Alternatively, [vim-autoformat] supports stylish-haskell. To have it automatically reformat the files on save, add to your vimrc:
+
+```vim
+autocmd BufWrite *.hs :Autoformat
+" Don't automatically indent on save, since vim's autoindent for haskell is buggy
+autocmd FileType haskell let b:autoformat_autoindent=0
+```
+
+[vim-autoformat]: https://github.com/Chiel92/vim-autoformat
+
There is also the [vim-stylish-haskell] plugin, which runs stylish-haskell
automatically when you save a Haskell file.
@@ -137,6 +147,13 @@ Atom integration
[ide-haskell]: https://atom.io/packages/ide-haskell
[atom-beautify]: Https://atom.io/packages/atom-beautify
+Visual Studio Code integration
+------------------------------
+
+[stylish-haskell-vscode] for VSCode supports `stylish-haskell`.
+
+[stylish-haskell-vscode]: https://github.com/vigoo/stylish-haskell-vscode
+
Using with Continuous Integration
---------------------------------