Show
Ignore:
Timestamp:
05/12/05 17:36:24 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4536
Message:

* attempt another fix on %ENV.exists.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Types/Hash.hs

    r3082 r3097  
    8787    hash_existsElem _ key = tryIO False $ do 
    8888        str <- getEnv key 
    89         return $ isJust str 
     89        return $ case str of 
     90            Just (_:_)  -> True 
     91            _           -> False 
    9092    hash_deleteElem _ key = do 
    9193        liftIO $ unsetEnv key