haskell / haskell/stylish-haskell

Unusual Record Formatting (hard tabs)

Abierto
#29 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Haskell
Estrellas
1k
Forks
153
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.