3 ms·
Doesn't hlint catch stuff like this?
by thomasahle 13y ago
Doesn't hlint catch stuff like this?
- gwern 13y agoHow would hlint catch this? The offending line is foldr (flip (buf_append bufOps)) (buf_empty bufOps) strs hlint doesn't know what 'buf_append bufOps' is, or 'buf_empty bufOps' or 'strs'. If you saw 'foldr (flip (u v)) (x y) z', would you immediately go 'ah, n^2! better throw a warning'? If not, why do you expect hlint to warn?