apply-refact
apply-refact copied to clipboard
Refactor Haskell source files
``` clock > /Users/me/.stack/programs/aarch64-osx/ghc-9.0.2/lib/ghc-9.0.2/lib/../lib/aarch64-osx-ghc-9.0.2/rts-1.0.2/include/ffitarget.h:6:10: error: clock > fatal error: 'ffitarget_arm64.h' file not found clock > | clock > 6 | #include "ffitarget_arm64.h" clock > | ^ clock > #include "ffitarget_arm64.h"...
I discovered this while getting haskell-language-server set up. https://github.com/haskell/haskell-language-server/issues/3020 Original file ``` $ cat foo.hlint.hs foo :: [a] -> [a] foo = foldl (\xs x -> x : xs) []...
For ```x = (Just 3 `elem`) []```, it should result ```x = Just 3 `elem` []```, but now got ```x = Just 3 elem []```. Here is the substitute param...
Hi, [using hls-hlint-plugin](https://github.com/haskell/haskell-language-server/issues/593) 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:...
Leaving through the releases of `apply-refact` on hackage, I see no upper bounds on `ghc` starting with release `0.7.0.0`. This may not reflect buildability correctly, see e.g. #114. What would...
Did you try to make it work? Simply changing ghc dependency to ghc-lib doesn't work because of ghc-exactprint type mismatches, so presumably ghc-exactprint would also need to use ghc-lib.
I encountered the following error when running `stack install apply-refact`: ``` apply-refact > /private/var/folders/2s/gzz0f5_n20g1pc2mnnbf_1c40000gn/T/stack-242b9b3cdfbd8b5c/apply-refact-0.9.0.0/src/Refact/Internal.hs:405:53: error: apply-refact > • Variable not in scope: noExt :: NoExt apply-refact > • Perhaps you...
Reported by @jneira. For instance, `x = ({- comment -}1)` becomes `x ={- comment -} 1`, but it should be `x = {- comment -}1`. See https://github.com/mpickering/apply-refact/pull/101#issuecomment-760643564
Given a file on Windows with LF newlines, when I run it through apply-refact, it comes out with CRLF newlines. It would be better if apply-refact (or maybe ghc-exactprint?) could...
```diff - when (not $ isStaffMail email) ($(logThrow) Unauthorized) + unless isStaffMail email ($(logThrow) Unauthorized) ``` This happens when the unless refactor is applied. Not sure if related to the...