hpath/unix/tests/fileexist01.hs

6 lines
139 B
Haskell

-- test System.Posix.fileExist
import System.Posix
main = do
fileExist "fileexist01.hs" >>= print
fileExist "does not exist" >>= print