single-constraint-parens
| Description | Whether to put parentheses around a single constraint |
|---|---|
| Options |
|
| Default | always |
| Ormolu | always |
| Since | v0.12.0.0 |
The auto option will keep parentheses if they already exist, but won't add parentheses if not.
Examples
logAction :: (MonadLogger m) => String -> m ()
logAction msg = logDebugN $ "Action: " <> msg
logAction :: MonadLogger m => String -> m ()
logAction msg = logDebugN $ "Action: " <> msg
For more examples, see the test files.