reverted flake
This commit is contained in:
18
download_hs/app/Main.hs
Normal file
18
download_hs/app/Main.hs
Normal 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
|
||||
2294
download_hs/app/test.txt
Executable file
2294
download_hs/app/test.txt
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user