Changeset 6010 for src/Pugs/Prim/Match.hs
- Timestamp:
- 08/03/05 00:39:19 (3 years ago)
- svk:copy_cache_prev:
- 8154
- Files:
-
- 1 modified
-
src/Pugs/Prim/Match.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Match.hs
r5335 r6010 71 71 subsMatch = [ VMatch $ mkMatchOk 0 0 (decodeUTF8 sub) [] Map.empty | sub <- subs ] 72 72 73 -- Used in op2Match 74 not_VRule :: Val -> Bool 75 not_VRule _y@(VRule _) = False 76 not_VRule _ = True 77 73 78 -- XXX - need to generalise this 74 79 op2Match :: Val -> Val -> Eval Val … … 156 161 (return $ VMatch match) 157 162 163 op2Match x@(VRule _) y | not_VRule y = do 164 op2Match y x 165 158 166 op2Match (VType typ) (VType t) = do 159 167 typs <- pkgParents (showType typ)
