Paying attentioon helps
This commit is contained in:
parent
f9325d02c9
commit
fdf0f88dea
|
@ -47,8 +47,8 @@ parseArgs (Args t dir h v r c) = do
|
|||
|
||||
mkIndex :: Bool -> FilePath -> FilePath -> IO ()
|
||||
mkIndex True d l = do
|
||||
line <- readFile $ d++"/"++l
|
||||
putStrLn $ "=> " ++ path ++ (head . lines $ line)
|
||||
line <- head . lines <$> readFile path
|
||||
putStrLn $ "=> " ++ path ++ line
|
||||
where path = d++"/"++l++" "
|
||||
|
||||
mkIndex False d l = putStrLn $ "=> " ++ path
|
||||
|
|
Loading…
Reference in a new issue