hlint icon indicating copy to clipboard operation
hlint copied to clipboard

use `: []` is not correct in the presence of `OverloadedLists`

Open MangoIV opened this issue 1 year ago • 1 comments

As the description says; it's not valid to suggest use :[] when using something like \x -> [x] in the presence of OverloadedLists. I hence think it would be good to not fire that lint by default.

MangoIV avatar Jun 09 '24 07:06 MangoIV

OverloadedLists is imo uncommon, so it's probably better to disable this per-project. However it would be reasonable to add a note to this hint for clarification

zliu41 avatar Dec 14 '24 20:12 zliu41