lspitzner / lspitzner/brittany

Add support for sorting and aligning LANGUAGE pragmas

Open
#201 4 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority: high
Dominant language
Haskell
Stars
686
Forks
69
PR merge metrics
No merged PRs in 30d

Description

I'd like to see similar behaviour to stylish-haskell where the pragmas are sorted, nubed, and aligned. I started looking into this a bit and the pragmas are stored as comments, so this might be a little complicated. @lspitzner I'd love some guidance on how to get started on this.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no file or test; start by tracing how LANGUAGE pragmas are stored as comments. Compare the requested sorting, duplicate removal, and alignment behavior with stylish-haskell, then define expected formatted output and add coverage for those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.