haskell / haskell/stylish-haskell

Unusual Record Formatting (hard tabs)

オープン
#29 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
1k
フォーク
153
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。