Skip to content

deriving alignment for enums  #411

@Lev135

Description

@Lev135

Is there a way to align deriving close at the next line? With default options (if we uncomment format records rules formatter change

data Tmp1 = A | B | C
  deriving (Show, Eq)

to

data Tmp1 = A | B | C deriving (Eq, Show)

This becomes more ugly with large enums:

data DefType = DefTEnv | DefTPref | DefTCmd | DefTInl | DefTMode | DefTSort deriving
    ( Eq
    , Ord
    , Show
    )

instead of

data DefType = DefTEnv | DefTPref | DefTCmd | DefTInl | DefTMode | DefTSort 
  deriving (Eq, Ord, Show)

Maybe I'm doing something wrong, but I cannot see an option to manage this behavior

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