You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 =ifwords==""thenshow n elsewordswherewords=""++
(ifmod n 3==0then"Fizz"else"") ++
(ifmod n 5==0then"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 =ifwords==""thenshow n elsewordswherewords=""++
(ifmod n 3==0then"Fizz"else"") ++
(ifmod n 5==0then"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 (
The text was updated successfully, but these errors were encountered:
Hello! I'm new to haskell. Great plugin, but I have an issue with indentation. I have this code:
(which I indented myself) but when I type it into vim while using the plugin I get this:
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 (
The text was updated successfully, but these errors were encountered: