Ormolu formatted.

This commit is contained in:
Paul Johnson 2022-04-11 08:25:39 +01:00
parent c6ecccdefd
commit 0c336ba826

View File

@ -35,8 +35,12 @@ resolveName pwd = do
files <- listDirectory pwd files <- listDirectory pwd
when ("--help" `elem` args || "-h" `elem` args) $ do when ("--help" `elem` args || "-h" `elem` args) $ do
progName <- getProgName progName <- getProgName
hPutStrLn stderr $ "Usage: " <> progName <> " [ --cabal | --stack ]\n\n\ hPutStrLn stderr $
\If neither argument is given then " <> progName <> " will infer the type by\n\ "Usage: " <> progName
<> " [ --cabal | --stack ]\n\n\
\If neither argument is given then "
<> progName
<> " will infer the type by\n\
\looking for dist-newstyle, .stack-work, cabal.project and stack.yaml in that order." \looking for dist-newstyle, .stack-work, cabal.project and stack.yaml in that order."
exitSuccess exitSuccess
let fileNames = map takeFileName files let fileNames = map takeFileName files