haskell / haskell/stylish-haskell

Break overly-long lines in type constructor list in import list

Open
#35 2 comments 7 reactions 0 assignees View on GitHub
bug
Dominant language
Haskell
Stars
1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

Example:

``` Haskell
import Language.Haskell.Syntax (HsExportSpec(HsEVar, HsEAbs, HsEThingAll, HsEThingWith, HsEModuleContents)
```

should be converted to

``` Haskell
import Language.Haskell.Syntax (HsExportSpec(HsEVar, HsEAbs, HsEThingAll,
HsEThingWith, HsEModuleContents)
```

(Note that I'm starting a new line after the last constructor which is still within 80 chars
from the end of the line.)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running stylish-haskell on the import example and locating the formatter entry point for import lists and type constructor lists. Compare the output with the requested 80-character wrapping, then add or update the relevant formatting test so the shown multiline layout is produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.