Skip to content

Inconsistent formatting with import-export-comma-style: leading #174

@novadev94

Description

@novadev94

Is your feature request specific to Fourmolu?

  • Yes, this feature is not relevant to Ormolu

Describe the current + desired formatting

Current

import Module
  ( TypeA
      ( ConstructorA,
      fieldA1,
      fieldA2
      )
  , TypeB
    ( ConstructorB,
    fieldB1,
    fieldB2
    )
  )

Desired

import Module
  ( TypeA
    ( ConstructorA
    , fieldA1
    , fieldA2
    )
  , TypeB
    ( ConstructorB
    , fieldB1
    , fieldB2
    )
  )

** Configuration

indentation: 2
comma-style: leading
import-export-comma-style: leading
record-brace-space: true
indent-wheres: true
respectful: true
haddock-style: single-line
newlines-between-decls: 1
# Conflicts with import-export-comma-style if `true`
diff-friendly-import-export: false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions