Open Javran opened 2 years ago
HLint could definitely suggest it - generalising sometimes makes programs break, so HLint tends not to do it that much by default, although I think some rules do it. One option would be to put this hint in the generalise for conciseness group, which definitely fits with what it does.
Spotted this refactoring opportunity that HLint doesn't warn me about:
I know the type is different because of
mconcat
, but it is a safe thing to suggest?Side note: just learnt
fold
while writing this up, which HLint does warn. So probably the real question is, is it aligned with HLint's goal to boost awareness for something likemconcat
vs.fold
?