Commit bafb78d
committed
Add option g:haskell_indent_let_no_in
This addresses some of the grievances in #85. Namely, we give users the
option to change how indentation works with `let` statements.
Current behavior:
-- g:haskell_indent_let
let x = 0
>>>>y = 0
let x = 0 in
>>>>x
-- g:haskell_indent_in
let x = 0
>in x
-- ??? (conflated with g:haskell_indent_let)
let x = 0
>>>>x
New behavior:
-- g:haskell_indent_no_in
let x = 0
>>>>x
So for example, those who omit the 'in' on the first line and any 'let'
on the second line can opt to have no indentaton:
--- g:haskell_indent_no_in = 0
let x = 0
fooBar x1 parent 9811f38 commit bafb78d
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| |||
208 | 217 | | |
209 | 218 | | |
210 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
211 | 223 | | |
212 | 224 | | |
213 | 225 | | |
| |||
219 | 231 | | |
220 | 232 | | |
221 | 233 | | |
222 | | - | |
| 234 | + | |
223 | 235 | | |
224 | 236 | | |
225 | 237 | | |
226 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
227 | 244 | | |
228 | 245 | | |
229 | 246 | | |
| |||
0 commit comments