haskell-indentation.el fails to indent properly after "rec" #110

Closed
lightquake opened this Issue Jan 4, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@lightquake
Contributor

lightquake commented Jan 4, 2013

As the title says. When I have code like

springy = proc target -> do
    rec current <- integral_ 400 -< velocity
        velocity <- integral_ 0 -< -(100 * (current - target) - 16 * velocity)

the suggested indentations are the leftmost, immediately after the <-, and aligned with the rec (when it should be aligned with current).

lightquake added a commit to lightquake/haskell-mode that referenced this issue Jan 13, 2013

@lightquake

This comment has been minimized.

Show comment
Hide comment
@lightquake

lightquake Jan 13, 2013

Contributor

Argh. Sorry I duplicated this, didn't realize how pull requests work. :( Closing this because it's superseded by #111 .

Contributor

lightquake commented Jan 13, 2013

Argh. Sorry I duplicated this, didn't realize how pull requests work. :( Closing this because it's superseded by #111 .

@lightquake lightquake closed this Jan 13, 2013

gregorycollins added a commit that referenced this issue Jan 13, 2013

Merge pull request #111 from lightquake/rec
Properly indent 'rec' keyword, same as 'mdo'. Fixes #110.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment