Changeset 6793 for src/Pugs/Prim/Match.hs
- Timestamp:
- 09/06/05 14:11:41 (3 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Prim/Match.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Match.hs
r6109 r6793 135 135 str <- fromVal x 136 136 rv <- matchOnce str 137 cxt <- asks envContext137 cxt <- asks envContext 138 138 if (not $ isSlurpyCxt cxt) 139 then return (VInt $ genericLength rv)140 else if rxStringify rx141 then do139 then return (VInt $ genericLength rv) 140 else if rxStringify rx 141 then do 142 142 strs <- mapM fromVal rv 143 143 return (VList $ map VStr strs) 144 else return (VList rv)144 else return (VList rv) 145 145 where 146 146 hasSubpatterns = case rx of
