haskell / haskell/stylish-haskell

Unusual Record Formatting (hard tabs)

Aperta
#29 0 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

In the example

```
data Customer = Customer {
customerID :: CustomerID,
customerName :: String,
customerAddress :: Address
} deriving Show
```

stylish yields

```
data Customer = Customer {
customerID :: Cust omerID,
customerName :: Stri ng,
customerAddress :: Address
} deriving Show
```

In Utrecht style

```
data Customer = Customer {
customerID :: CustomerID
, customerName :: String
, customerAddress :: Address
} deriving Show
```

stylish yields

```
data Customer = Customer {
customerID :: Cust omerID
, customerName :: Stri ng
, customerAddress :: Address
} deriving Show
```

My global config contains

```
- records: {}
```

It appears that this is only an issue when using hard tabs. Using soft tabs yields the expected results. While this is more correct w.r.t. the Report, it may be worthwhile to add support for tabs, or provide a warning in the README about this case.

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.