Skip to content

[Beginner] Commas are poorly formatted in records #2080

@alexandru-calinoiu

Description

@alexandru-calinoiu

Hi,

Just working at setting up my work env for haskell, been working with elm for some time now and I love the way records are formatted with a starting comma. Can't figure out how to turn

data Employee = Employee
  { employeeFirstName :: String,
    employeeLastName :: String,
    employeeAge :: Int,
    company :: String,
    email :: String,
    salary :: Int
  }

into

data Employee = Employee
  { employeeFirstName :: String
    , employeeLastName :: String
    , employeeAge :: Int
    , company :: String
    , email :: String
    , salary :: Int
  }

I know that the current formater used by the extension is stylish-haskell at least I hope it is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions