haskell / haskell/haskell-mode
haskell-align-imports is confused by the word "instance" in comments
Open
- Dominant language
- Emacs Lisp
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 2
Description
Example code:
```
-- instance
import A
import qualified B
```
fails to align. But a typo in `instance` above makes it succeed. i.e: it's probably being confused by keywords in comments.
Contributor guide
Research direction
Reproduce the example with haskell-align-imports, then inspect the command's parsing and comment-handling logic. The fix is complete when a comment containing "instance" no longer changes the alignment result for the imports shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs-lisp, haskell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100