haskell / haskell/stylish-haskell

[Feature request] Partitionate qualified and non-qualified imports

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

Description

Would be great to regroup imports depending if they are qualified or not. For example,

```haskell
import A
import qualified B
```

could be transformed to:

```haskell
import A

import qualified B
```

and

```haskell
import A
import qualified B
import qualified C
import D
```

could be transformed to:

```haskell
import A
import D

import qualified B
import qualified C
```

This, in combination with these settings:

```yaml
steps:
- imports:
align: group
pad_module_names: true
```

would allow to align import lists without adding the ` qualified ` padding if they were in the same group. Also, they would look more organized.

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.