Closed
Description
Hello! I'm new to haskell. Great plugin, but I have an issue with indentation. I have this code:
fizzbuzz = map fizzbuzzify [1..]
where fizzbuzzify n = if words == "" then show n else words
where words = "" ++
(if mod n 3 == 0 then "Fizz" else "") ++
(if mod n 5 == 0 then "Buzz" else "")
(which I indented myself) but when I type it into vim while using the plugin I get this:
fizzbuzz = map fizzbuzzify [1..]
where fizzbuzzify n = if words == "" then show n else words
where words = "" ++
(if mod n 3 == 0 then "Fizz" else "") ++
(if mod n 5 == 0 then "Buzz" else "")
The indentation of the code in parens is not indented far enough and haskell doesn't compile. I tried with both 4-space tabs and 2-space tabs. Help?
Edit: The indentation is initially correct when I press enter, but it messes itself up when I then type a (
Metadata
Metadata
Assignees
Labels
No labels