Apply hlint 3.3.2 suggestions
This commit is contained in:
parent
3986677b06
commit
f6b6b36eb7
@ -142,9 +142,7 @@ getLinuxDistro = do
|
|||||||
| otherwise -> UnknownLinux
|
| otherwise -> UnknownLinux
|
||||||
pure (distro, parsedVer)
|
pure (distro, parsedVer)
|
||||||
where
|
where
|
||||||
hasWord t matches = foldr (\x y -> match (regex x) (T.unpack t) || y)
|
hasWord t = any (\x -> match (regex x) (T.unpack t))
|
||||||
False
|
|
||||||
matches
|
|
||||||
where
|
where
|
||||||
regex x = makeRegexOpts compIgnoreCase execBlank ([s|\<|] ++ x ++ [s|\>|])
|
regex x = makeRegexOpts compIgnoreCase execBlank ([s|\<|] ++ x ++ [s|\>|])
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ execLogged exe args chdir lfile env = do
|
|||||||
pure e
|
pure e
|
||||||
|
|
||||||
tee :: Fd -> Fd -> IO ()
|
tee :: Fd -> Fd -> IO ()
|
||||||
tee fileFd fdIn = readTilEOF lineAction fdIn
|
tee fileFd = readTilEOF lineAction
|
||||||
|
|
||||||
where
|
where
|
||||||
lineAction :: ByteString -> IO ()
|
lineAction :: ByteString -> IO ()
|
||||||
|
Loading…
Reference in New Issue
Block a user