hlint hack.
This commit is contained in:
parent
fb0deb1abd
commit
27c1c4fa3d
@ -34,7 +34,7 @@ searchIt :: [FilePath] -> IO (Maybe FilePath)
|
||||
searchIt [] = return Nothing
|
||||
searchIt path = do
|
||||
a <- doesDirectoryExist (mpath path)
|
||||
if a then do
|
||||
if a then
|
||||
findConf (mpath path)
|
||||
else
|
||||
searchIt $ init path
|
||||
@ -44,4 +44,4 @@ searchIt path = do
|
||||
findConf :: FilePath -> IO (Maybe FilePath)
|
||||
findConf path = do
|
||||
f <- find (=~ "packages.*\\.conf") <$> getDirectoryContents path
|
||||
return $ ((path </>) <$> f)
|
||||
return ((path </>) <$> f)
|
||||
|
2
Check.hs
2
Check.hs
@ -12,7 +12,7 @@ import Types
|
||||
----------------------------------------------------------------
|
||||
|
||||
checkSyntax :: Options -> String -> IO String
|
||||
checkSyntax opt file = do
|
||||
checkSyntax opt file =
|
||||
unlines <$> check opt file
|
||||
|
||||
----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user