如何从Haskell中的字符串列表中获取搜索匹配?
module Main
where
import List
import IO
import Monad
getLines = liftM lines . readFile
main = do
putStrLn "Please enter your name: "
name <- getLine
list <- getLines "list.txt"
-- mapM_ putStrLn list -- this part is to list out the input of lists
Run Code Online (Sandbox Code Playgroud)