-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
hlint plugin #32
Comments
I am trying the DAML approach for hls, but getting a mismatch on ghc-lib equivalents for the GHC types. Does this approach require the |
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes haskell#32
HLint only supports one major version of GHC at a time, namely 8.8 at the moment. For every other version it uses ghc-lib-8.8. For DAML there is only one version of GHC and it's not a problem. My guess is that for hls we'll have to use the AST when you are on 8.8, and on older versions, try passing equivalent flags to the parse bit of hlint itself. I'm not sure if there are any negative interactions of putting ghc and ghc-lib in the same process - @cocreature and @shayne-fletcher-da will know. |
In general using ghc and |
So perhaps the hlint plugin for |
That sounds eminently plausible. Here's how it's done in
|
This comment has been minimized.
This comment has been minimized.
I am taking a look to the draft pr, trying to apply the changes related with ghc-lib but, after setting in scope last versions of hlint and ghc-lib i am getting this error:
|
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
Integrating old HLint is a guaranteed way to get old bugs cropping up, which is lots of support burden. Therefore, I'd recommend the approach of using If you want to go with only one code path (which isn't unreasonable) I'd always do |
@ndmitchell thanks, wise notes, as usual |
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
@jneira what is the status of this? |
I am trying to add the apply-refact part, but i think i`ll have to change the diagnostics one: see #166 |
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
A suggestion: it would be cool if in addition to fixing the hints, there was an option to ignore that specific hint for this module, by inserting a |
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
But getting a mismatch on ghc-lib vs GHC types for the call to hlint. Closes #32
building extension in correct path
Use the same approach as for DAML, which re-uses the parsed AST.
From IRC:
The text was updated successfully, but these errors were encountered: