comma-style

DescriptionHow to place commas in multi-line lists, records, etc.
Options
  • leading
  • trailing
Defaultleading
Ormolutrailing
Sincev0.2.0.0

Examples

data User = User
    { userName :: String
    , userAge :: Int
    , userActive :: Bool
    }

forbiddenPasswords :: [String]
forbiddenPasswords =
    [ "password"
    , "hunter2"
    , "123456"
    ]
data User = User
    { userName :: String,
      userAge :: Int,
      userActive :: Bool
    }

forbiddenPasswords :: [String]
forbiddenPasswords =
    [ "password",
      "hunter2",
      "123456"
    ]

For more examples, see the test files.

See also