Use comma separators for enum style config value listing.

This commit is contained in:
Kevin Quick 2021-04-28 08:10:13 -07:00
parent e8666ca850
commit bdcc394836
No known key found for this signature in database
GPG Key ID: E6D7733599CC0A21

View File

@ -482,7 +482,7 @@ enumOptSty elts = stringOptSty & set_opt_onset vf
| otherwise = return $ optErr $
"invalid setting" <+> dquotes (pretty x) <>
", expected one of these enums:" <+>
align (sep (map pretty $ Set.toList elts))
align (sep (punctuate comma (map pretty $ Set.toList elts)))
-- | A configuration syle for options that must be one of a fixed set of text values.
-- Associated with each string is a validation/callback action that will be run