stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

[Feature request] Partitionate qualified and non-qualified imports

Open german1608 opened this issue 5 years ago • 0 comments

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

import A
import qualified B

could be transformed to:

import A

import qualified B

and

import A
import qualified B
import qualified C
import D

could be transformed to:

import A
import D

import qualified B
import qualified C

This, in combination with these settings:

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.

german1608 avatar May 16 '20 18:05 german1608