-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Labels
Description
Hi, using hls-hlint-plugin an user has detected that apply "eta reduce" removes the identation of a where block, making the code throw parser errors
PS D:\dev\ws\haskell\cabal-test> cat .\src\HlintTests.hs
module HlintTests where
f :: String -> String
f x = show x
where y :: String
y = "foo"
PS D:\dev\ws\haskell\cabal-test> hlint .\src\HlintTests.hs --refactor
module HlintTests where
f :: String -> String
f = show
where
y = "foo" y :: String
PS D:\dev\ws\haskell\cabal-test> hlint --version
HLint v3.2.1, (C) Neil Mitchell 2006-2020
PS D:\dev\ws\haskell\cabal-test> refactor --version
v0.8.2.1Thanks in advance.
Reactions are currently unavailable