Changeset 3538 for src/Pugs/Prim/Eval.hs

Show
Ignore:
Timestamp:
05/20/05 23:49:16 (4 years ago)
Author:
theorbtwo
svk:copy_cache_prev:
5107
Message:

More signatures. If I could fiture out a signature for mainCC in
src/Pugs/Compile/Haskell.hs that doesn't make the compiler croak, we could
turn off the option to not warn (and thus error, since we -Werror) on
missing signatures.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Eval.hs

    r3296 r3538  
    3232op1EvalHaskell cv = do 
    3333    str     <- fromVal cv :: Eval String 
    34     ret     <- liftIO (evalHaskell str) 
    35     glob    <- askGlobal 
    36     errSV   <- findSymRef "$!" glob 
    37     case ret of 
    38         Right str -> do 
    39             writeRef errSV VUndef 
    40             return $ VStr str 
    41         Left  err -> do 
    42             writeRef errSV (VStr err) 
    43             retEmpty 
     34    evalHaskell str 
    4435 
    4536opEval :: Maybe Bool -> String -> String -> Eval Val