More path parsing

This commit is contained in:
Nox Sluijtman 2023-07-31 15:18:50 +02:00
parent 137b150cc3
commit 1cda324ad2

View file

@ -68,6 +68,6 @@ mkIndex :: Bool -> FilePath -> FilePath -> IO ()
mkIndex True d l = do
line <- readFile $ d++"/"++l
putStrLn $ "=> " ++ l ++ " " ++ (head . lines $ line)
mkIndex False _ l = putStrLn $ "=> " ++ l
mkIndex False d l = putStrLn $ "=> " ++ d ++ "/" ++ l
--compose = (++) <$> ("=> " ++) <*> (show . length) <*> (head . lines =<< readFile)