single-constraint-parens

DescriptionWhether to put parentheses around a single constraint
Options
  • auto
  • always
  • never
Defaultalways
Ormolualways
Sincev0.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.