You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spotted this refactoring opportunity that HLint doesn't warn me about:
> f g xs =mconcat.fmap g $ xs
>:t f
f::Monoidc=> (a->c) -> [a] ->c>:t foldMapfoldMap:: (Foldablet, Monoidm) => (a->m) ->ta->m
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 like mconcat vs. fold?