Skip to content

haskell-indentation after type declaration wrong. #347

Closed
@amukiza

Description

@amukiza

Hi there,

I enabled haskell-indent but the indentation is kind of frustrating. When I declare a function type, and hit return, the haskell-indent puts the cursor right under the end of the function name. I would have expected it top go to the beginning of the line, right under the name of the function. (Refer to the screenshot below)

screen shot 2014-09-29 at 12 02 33 pm

Another case, is when I have finished defining my function, and I hit return .... the indentation remains under the function. I realize that this may be the feature that was built in haskell-indent since there are no braces or curry brackets to indicate the end of a function, but wouldn't it be smarter that when i hit enter twice ... I get the blank lines and the cursor goes right at the beginning of the new line.

screen shot 2014-09-29 at 12 09 28 pm

I am a new emacs user, so I obviously can't help by contributing :-) but if this can be done easily please help me out here.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions