Skip to content

data indentation starting from begin of line and deriving on same line #490

@ignamartinoli

Description

@ignamartinoli

I tried different combinations of options, and there is currently no way to format a data declaration like this:

data Temperature = Temperature
  { unit  :: Char
  , value :: Integer
  } deriving (Eq, Show)

In the records section of the configuration, I can't configure whether to indent each field:

  • from the beginning of the data constructor (only current behaviour)
  • from the beginning of the line

(Also, there is no way to have deriving on the same line of the closing bracket)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions