comma-style
| Description | How to place commas in multi-line lists, records, etc. |
|---|---|
| Options |
|
| Default | leading |
| Ormolu | trailing |
| Since | v0.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.