haskell / haskell/stylish-haskell

Supporting more flexible configuration options

Aperta
#64 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Haskell
Stelle
1k
Fork
153
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This is a bit of a brain dump...

We currently have a fork of stylish-haskell that matches the coding style we use at Silk. It does pretty specific things, like putting qualified imports at the bottom and doing numeric sorting where possible. I don't think it'd make sense to make a separate configuration option for this as "silk" is the only common denominator. But we also would rather not maintain a fork since this style is also used in our open source packages.

Could we keep the current defaults to not cause breakage but add more options for stylish so it's easier to customize? I thought a bit about the implementation and I think just using a Reader containing fine grained options would make the existing code cleaner and allow for easier extension.

The downside of this would be that there are a lot of things people might want to customize and if a lot of additions are submitted maintenance might become a pain. Especially since all the combinations need to play well together and some are mutually exclusive.

I'd appreciate some input on this!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.