Changeset 7286 for src/Main.hs

Show
Ignore:
Timestamp:
10/04/05 22:57:01 (3 years ago)
Author:
autrijus
Message:

* tryIO is also used in Main.hs. My bad.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Main.hs

    r7230 r7286  
    263263    fileExists path = do 
    264264        let (p,f) = splitFileName path 
    265         dir <- tryIO Nothing $ fmap Just $ getDirectoryContents p 
     265        dir <- (fmap Just $ getDirectoryContents p) `catch` (const $ return Nothing) 
    266266        case dir of 
    267267            Just dir' -> return $ f `elem` dir'