This commit is contained in:
2024-07-16 12:59:22 -06:00
commit d0af37ab9c
66 changed files with 9675 additions and 0 deletions

18
download_hs/app/Main.hs Normal file
View File

@@ -0,0 +1,18 @@
module Main where
-- import Text.RE
-- Read a file line by line
readLines :: FilePath -> IO [String]
readLines = fmap lines . readFile
-- Example usage
main :: IO ()
main = do
let filePath = "./app/test.txt"
linesOfFile <- readLines filePath
mapM_ watchedURLS linesOfFile
watchedURLS :: String -> IO ()
watchedURLS line = do
putStrLn $ "Processing line: " ++ line