Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'where' and 'let..in' #78

Open
pyed opened this issue Jun 20, 2014 · 1 comment
Open

'where' and 'let..in' #78

pyed opened this issue Jun 20, 2014 · 1 comment

Comments

@pyed
Copy link

pyed commented Jun 20, 2014

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.

@rubik
Copy link

rubik commented Oct 4, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants