Changeset 4084 for src/Pugs/Internals.hs

Show
Ignore:
Timestamp:
05/29/05 03:40:42 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5515
Message:

* first cut at $hash.keys for perl5.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Internals.hs

    r4074 r4084  
    277277 
    278278{-| 
    279 Returns @True@ if the environment variable @PUGS_SAFEMODE@ is set to @true@. In 
    280 safemode, most IO prims are forbidden. 
    281 -} 
     279Returns @True@ if the environment variable @PUGS_SAFEMODE@ is set to a 
     280true value. Most IO primitives are disabled under safe mode. 
     281-} 
     282{-# NOINLINE safeMode #-} 
    282283safeMode :: Bool 
    283284safeMode = case (unsafePerformIO $ getEnv "PUGS_SAFEMODE") of 
    284     Just "true" -> True 
    285     _           -> False 
     285    Nothing     -> False 
     286    Just ""     -> False 
     287    Just "0"    -> False 
     288    _           -> True