You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS D:\dev\ws\haskell\cabal-test> cat .\src\HlintTests.hs
module HlintTests where
bar :: Maybe Int -> [Int] -> String
bar x y =
-- this is a comment
if isJust x then"1"elseif Prelude.null y then"2"else"3"
PS D:\dev\ws\haskell\cabal-test> hlint .\src\HlintTests.hs --refactor
module HlintTests where
bar :: Maybe Int -> [Int] -> String
bar x y
| isJust x = "1"| Prelude.null y = "2"| otherwise = "3"
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.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi, using hls-hlint-plugin an user has detected that apply "use guards" remove comments above the inserted guard:
Thanks in advance!
The text was updated successfully, but these errors were encountered: