haskell / haskell/stylish-haskell
Spaces are added to imports of operators which start with `#`
- Dominant language
- Haskell
- Stars
- 1k
- Forks
- 153
- PR merge metrics
- No merged PRs in 30d
Description
The following line
```haskell
import Foo ((#|), (#%), (|#), (%#))
```
is formatted by stylish-haskell as follows:
```haskell
import Foo (( #% ), ( #| ), (%#), (|#))
```
This probably has something to do with `-XMagicHash`, even though `-XMagicHash` isn't enabled anymore.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with the Haskell import example and inspect the formatter's handling of operator imports, especially the `#`-prefixed operators and any MagicHash-related logic. Done means formatting preserves the operators without inserting spaces inside them, while retaining the existing import formatting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100