hlint
hlint copied to clipboard
Haskell source code suggestions
I know I stand a good chance of being ridiculed for this, so please hear me out, but feel free to ignore this issue entirely. Hints are sometimes phrased as...
I was going through the list of hints: https://github.com/ndmitchell/hlint/blob/master/hints.md and I noticed that some unrelated hints have the same name. For example "usePutStrLn" is used for replacing `putStr (xs ++...
I'd like to ignore directories generated by `bnfc`. They don't change, so it'll be convenient to configure them in `.hlint.yaml`.
Now that [these safe functions](https://hackage.haskell.org/package/base-4.19.1.0/docs/Data-Foldable1.html#v:maximum) 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...
When the operand of a left operator section is an application with the argument a lambda taking advantage of `BlockArguments`, an incorrect suggestion to remove the brackets around the application...
When using `OverloadedRecordDot` extension after defining record with field name `id`, hlint will give incorrect hints when field `id` of record is used via dot syntax. ### Example ```haskell data...
Given ```yaml - group: {name: generalise, enabled: true} ``` hlint will suggest the following illegal transformation: ```diff - test map = map + test map = fmap ``` The fix...
I would like to use hlint to output warnings for definitions of identifiers (type or value) that contain capitalisms, e.g., `getSMSOTP`. This is almost what the `camelCase` rule does. The...
Suggested various renamings of hints, in ways I would consider more useful/consistent in communicating with students in particular. The changes are distributed over several smaller commits "grouping" similar suggestions, and...
In the spirit of #1569, various `toList` calls could be optimized away. But I'm not sure `containers` is "in scope" since no other rules currently seem to refer to functions...