Skip to content

haskell-indent jumps to 4 characters at top-level #868

Closed
@sirlensalot

Description

@sirlensalot

To reproduce, create a new .hs file, enter "module Foo where". Next line will be indented 4 characters. Same with after imports. This showed up on mac emacs after upgrading to latest haskell-mode (haskell-mode-20150912.58).

To attempt to fix, I added (not (or (looking-at "module") (looking-at "import"))) to haskell-indent-contour-line in haskell-indent.el. Seems hacky. So far seems to resolve the issue, but I'm not comfortable yet that this is a good fix. Also not sure why this broke, I don't see much activity affecting the "contour-line" functions in haskell-indent.el.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions