haskell / haskell/stylish-haskell

DataTypes style

Open
#48 2 comments 4 reactions 1 assignee Claimed by @EncodePanda View on GitHub
Dominant language
Haskell
Stars
1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.