URGENT: File exists

Ashley Yakeley ashley@semantic.org
Sat, 3 Nov 2001 03:08:31 -0800


At 2001-11-03 02:56, bracaman@box.sk wrote:

>I need to create a function that checks if a file exists. My intention is 
>to do something like:
>
> teste :: String -> Bool (Beeing the String the FilePath)

This cannot be done safely. Consider making a function with type

     test :: String -> IO Bool

...


-- 
Ashley Yakeley, Seattle WA