-
Notifications
You must be signed in to change notification settings - Fork 29
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
Apply hint: redundant lambda breaks block identation #95
Comments
Thanks for reporting the bug. This one seems tricky to fix without modifying ghc-exactprint. See alanz/ghc-exactprint#97. Worst can we can disable refactoring of this hint in HLint. |
I've disabled refactoring for this hint, if the body is an |
@zliu41 Otoh i have a hls branch that already uses apply-refact master that compiles (but not tested) so the actual api is usable by hls: haskell/haskell-language-server@master...jneira:apply-refact-exts. I hope at least the interface would not need to be changed. 🤞 So yeah, a release lo leverage your late amazing work here would be great. |
@zliu41 I am afraid the workaround for the ghc libdir hardcoded path in windows has become almost unnaceptable. I have to fix it asap and it will suppose changes in |
Yeah, I'd like to fix #87 before a release. And perhaps more importantly, if alanz/ghc-exactprint#96 needs to be fixed, I should wait for that too, because apply-refact calls |
@zliu41 hi! i've falmost finished the pr in hls to leverage your nice last changes. However dont know when i will be able to tacke alanz/ghc-exactprint#96. What do you think about make a release with the actual version? |
@jneira Yeah, I think a release is due. The issue we were discussing before (#87), it seems best to be fixed in ghc-exactprint. There are two more issues I'd like to take a look to see if they can be easily fixed: ndmitchell/hlint#1179 and alanz/ghc-exactprint#97. But I'll definitely make a release this week. |
@jneira 0.9.0.0 is out 🙂 |
@zliu41 hi! any progress in this issue? thanks |
Hi @jneira! I haven't looked at this one since a year ago 😄 . I think this requires some changes to ghc-exactprint, which I'm happy to look into soon, but I don't know how easy it is to fix it so I don't have an ETA. |
Hi, using hls-hlint-plugin an user has detected that apply "redundant lambda" breaks the block identantion.
Same versions that previous issues: #93 and #94
Test cases has been aded by @soiamsoNG: #92
The text was updated successfully, but these errors were encountered: