Show
Ignore:
Timestamp:
06/23/05 21:00:37 (3 years ago)
Author:
autrijus
svk:copy_cache_prev:
6771
Message:

* clean up theorbtwo's vCast patch. I expect most tests

to still break... :)

Files:
1 modified

Legend:

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

    r4870 r4922  
    119119    if (not $ isSlurpyCxt cxt) 
    120120        then return (VInt $ genericLength rv) 
    121         else return . VList $ if rxStringify rx 
    122             then map (VStr . vCast) rv 
    123             else rv 
     121        else if rxStringify rx 
     122            then do 
     123                strs <- mapM fromVal rv 
     124                return (VList $ map VStr strs) 
     125            else return (VList rv) 
    124126    where 
    125127    matchOnce :: String -> Eval [Val]