haskell / haskell/stylish-haskell

Unusual Record Formatting (hard tabs)

Ouverte
#29 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Haskell
Étoiles
1k
Forks
153
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.