import IO import Directory main = do x <- doesFileExist "/tmp/foo.txt" print x removeFile "/tmp/foo.txt" y <- doesFileExist "/tmp/foo.txt" print y