Skip to content

Conversation

czipperz
Copy link
Contributor

@czipperz czipperz commented Nov 4, 2016

This will fix edge cases in haskell-ds-forward-decl that would cause it to go forward to the beginning of the next decl when there are documentation comments, rather than the correct behavior of going to the end of the current declaration.

Behavior demonstrated (cursor is at POINTBEFORE at the beginning and should go to NEWPOINTAFTER, used to go to POINTAFTER).

POINTBEFOREmain = x
NEWPOINTAFTER
-- | Documentation
POINTAFTERx = return ()

@czipperz
Copy link
Contributor Author

czipperz commented Nov 4, 2016

I added tests for this behavior to the ones I wrote previously as well.

@gracjan gracjan merged commit 6d181e4 into haskell:master Nov 7, 2016
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

Successfully merging this pull request may close these issues.

2 participants