ndmitchell / hlint

Haskell source code suggestions
Other
1.45k stars 194 forks source link

Recommend `Data.Foldable1` over `Data.List.{maximum,minimum}{,By}` #1576

Open ysangkok opened 4 months ago

ysangkok commented 4 months ago

Now that these safe functions have been added, it would be nice if hlint could point out to me where I am using them instead of the partial ones in Data.List.

Would this belong in hlint or would it be confusing because GHC is now warning about head. It's kinda weird to have an error class (partial functions) of which sometimes the error is from GHC, and other times it is from hlint.

There is a compatibility package.