我編譯此代碼,receving的「輸入解析錯誤‘=’'錯誤Haskell的錯誤 - 語法錯誤「=」
import System.IO
import Data.List.Split
main = do
handle <- openFile "ac/abc" ReadMode
contents <- hGetContents handle
let xs = splitOneOf "; \n " contents
print xs
readStrList contents = do
print contents
hClose handle
請建議什麼是錯的
你想用'readStrList'行完成什麼? – ehird
其實我正在嘗試另一種遞歸方式,因爲for_要求hoogle.this working.thanks – code4fun