haskell / haskell/stylish-haskell

DataTypes style

Aperta
#48 2 commenti 4 reazioni 1 assegnatario Rivendicata da @EncodePanda Vedi su GitHub
Lingua principale
Haskell
Stelle
1k
Fork
153
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello!
It would be great to add option to style DataTypes and other structures, for example:

```
data Point = Point
{ pointX :: Double, pointY :: Double
, pointName :: String
}
deriving (Show)
```

should be changed to the following (or simmilar):

```
data Point = Point { pointX :: Double
, pointY :: Double
, pointName :: String
} deriving (Show)
```

Additional the ability to enable or disable some pretification parts would be very usefull - for example, some users would not like to put types in the same column (like in my example)

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.