vim2hs
vim2hs copied to clipboard
'where' and 'let..in'
first of all thanks for your effort.
two things I noticed using vim2hs, let's start with 'where', consider the following:
add1 x = x + y
where
y = 1
the script won't indent the where which causes a parse error, it should get indented like this:
add1 x = x + y
where
y = 1
and the let..in, ideally, when you type in it should get back to the let column.
what's happening with vim2hs is this:
add2 x = let y = 1
z = 1
in = x + y + z
which is fine by the compiler, but it's not aligned.
I noticed this behavior as well. Unfortunately I don't know how to fix it. It probably has to do with the definitions inside autoload/vim2hs/haskell/editing.vim.