-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: changes in preparation for hlint 3.6 #1092
Conversation
We will shortly bump our haskell.nix, which will bring in a new version of hlint. This adds some new linting checks which, before this commit, we would fail. Signed-off-by: Ben Price <[email protected]>
3c55265
to
a4d5d28
Compare
This should address the pre-commit-checks failures in #1084 |
genPrimCon' = do | ||
genPrimCon <&> map (bimap (fmap $ PrimCon ()) (TCon ())) <&> filter (consistentTypes ty . snd) <&> \case | ||
consistentCons <- | ||
filter (consistentTypes ty . snd) . map (bimap (fmap $ PrimCon ()) (TCon ())) | ||
<$> genPrimCon | ||
pure $ case consistentCons of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some changes which I am less sure are improvements: 1/3
( typeInUse tdName td tydefs defs | ||
|| any (elem paramName . freeVarsTy) (concatMap valConArgs $ astTypeDefConstructors td) | ||
|| elemOf | ||
(to astTypeDefConstructors % folded % to valConArgs % folded % getting _freeVarsTy % _2) | ||
paramName | ||
td | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some changes which I am less sure are improvements: 2/3
when | ||
(any (elem paramName . freeVarsTy) $ concatMap valConArgs $ astTypeDefConstructors td) | ||
( elemOf | ||
(to astTypeDefConstructors % folded % to valConArgs % folded % getting _freeVarsTy % _2) | ||
paramName | ||
td | ||
) | ||
(throwError $ TypeParamInUse tdName paramName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some changes which I am less sure are improvements: 3/3
I'm fine with these, but I'm also OK with disabling some of the new lints. |
We will shortly bump our haskell.nix, which will bring in a new version of hlint. This adds some new linting checks which, before this commit, we would fail.