More path parsing
This commit is contained in:
parent
137b150cc3
commit
1cda324ad2
|
@ -68,6 +68,6 @@ mkIndex :: Bool -> FilePath -> FilePath -> IO ()
|
||||||
mkIndex True d l = do
|
mkIndex True d l = do
|
||||||
line <- readFile $ d++"/"++l
|
line <- readFile $ d++"/"++l
|
||||||
putStrLn $ "=> " ++ l ++ " " ++ (head . lines $ line)
|
putStrLn $ "=> " ++ l ++ " " ++ (head . lines $ line)
|
||||||
mkIndex False _ l = putStrLn $ "=> " ++ l
|
mkIndex False d l = putStrLn $ "=> " ++ d ++ "/" ++ l
|
||||||
|
|
||||||
--compose = (++) <$> ("=> " ++) <*> (show . length) <*> (head . lines =<< readFile)
|
--compose = (++) <$> ("=> " ++) <*> (show . length) <*> (head . lines =<< readFile)
|
||||||
|
|
Loading…
Reference in a new issue