vim2hs icon indicating copy to clipboard operation
vim2hs copied to clipboard

'where' and 'let..in'

Open pyed opened this issue 11 years ago • 1 comments

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.

pyed avatar Jun 20 '14 13:06 pyed

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.

rubik avatar Oct 04 '14 14:10 rubik