【发布时间】:2011-01-09 11:26:25
【问题描述】:
例如:
newfile :: FilePath -> IO Bool
newfile x | length x <= 0 = return False
| doesFileExist x == True = return False
| otherwise = return True
这可以实现吗?
【问题讨论】:
-
我相信这是stackoverflow.com/questions/2138385的编辑,而不是一个独立的问题。