haskell / haskell/vscode-haskell-syntax-highlighting
Stop indentation after two newlines (or don't indent after `module ... where`)
- Dominant language
- Haskell
- Stars
- 109
- Forks
- 51
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 2
Description
Not entirely sure indentation rules are specified in the syntax packages, so just ignore this if that's not the case.
I find that I often wrestle with the automatic indentation, especially after `where` blocks. For example, pasting in Haskell code, will automatically indent everything after the `module ... where` in the top, which is not really intended. Take e.g.
```
module Main where
import Primes
main = putStrLn $ "The 101st prime is " ++ show (primes !! 100)
```
which becomes (when pasted),
```
module Main where
import Primes
main = putStrLn $ "The 101st prime is " ++ show (primes !! 100)
```
It would be great if one could either disable the indentation for `module ... where` specifically, or better yet have the behaviour of resetting indentation after two blank lines in a row.
Is this even possible in VS Code?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.