hlint
hlint copied to clipboard
Haskell source code suggestions
I've seen students doing that, typically in the context of composing a larger picture/expression comprised of many smaller pictures being positioned by `translated` calls; and for some reason sub-pictures that...
For example: https://github.com/ndmitchell/hlint/blob/752baba987f61d3d3778751f2709293521841e0c/hints.md?plain=1#L1882 I would have expected this to be: ```html Use < ```
Non-utf8 files are not silently ignored, so if there are any they crash hlint: https://github.com/ndmitchell/hlint/blob/75840f72b1cf344da6ef632650809d5f31e36115/src/GHC/All.hs#L180
Fix #1584 I started by refactoring the relevant code, but in doing so I found some very strange semantics, as you'll see below. I assume this is a historical artifact...
this is expected (and the failure to produce a build plan deliberate). the current version of hlint requires a ghc-lib-parser-9.8.* these versions of ghc-lib-parser cannot be built by compilers >...
It seems that `hlint -g` not only checks tracked and checked in files, but also files that are untracked. In https://github.com/ndmitchell/hlint/issues/1090#issuecomment-668221773 @ndmitchell said that `hlint -g` runs `git ls-files --cached...
When you run `hlint --git` in a directory which doesn't contain any Haskell files, the help text is printed.
With https://github.com/agda/agda/commit/0ff0741244252b46a183b7d5d4f526b7fe8c25f7, and the following diff, I'm getting suggestions that don't compile. ```diff git diff diff --git a/.hlint.yaml b/.hlint.yaml index ccd486368..8daec1b5e 100644 --- a/.hlint.yaml +++ b/.hlint.yaml @@ -74,7 +74,6 @@...
`Redundant ` should not trigger for lengthy `LambdaCase` ```hs Map.lookup dbaPath readIORef storeRef >>= \case Nothing -> do (hdr, da) case eqT of Nothing -> throwIO . userError $ "element...
It would be nice to be able to write rules for list literals with any number of elements. For example, consider the following rule: ``` yaml - warn: lhs: '[x]...