haskell / haskell/stylish-haskell

Formatting only GADT with "indent 2" instead of "same_line"

Open
#446 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

SH formats my GADTs instead of this:
```hs
data Foo a where
SomeA :: String -> Foo ()
SomeB :: Bool -> Foo String
SomeC :: String -> Foo ()
```
like this:

```hs
data Foo a where SomeA :: String -> Foo ()
SomeB :: Bool -> Foo String
SomeC :: String -> Foo ()
```

This is probably due to this setting
```yaml
- records:
equals: "same_line"
# instead of
# equals: "indent 2"
```

Is there some way to distinguish between GADTs and normal records so I can keep the "same_line" option but format GADT with an indent?

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.