Changeset 3708
- Timestamp:
- 05/23/05 04:23:41 (4 years ago)
- svk:copy_cache_prev:
- 5201
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/Pugs/Prim/Match.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r3706 r3708 71 71 eat trailing whitespace. 72 72 * `next` now re-evaluates condition in `loop` constructs. 73 * Type-to-type smartmatch, e.g. `Int ~~ Num`, now works. 73 74 74 75 == Changes for 6.2.3 (r3111) - May 12, 2005 -
src/Pugs/Prim/Match.hs
r3372 r3708 78 78 op2Match x y' 79 79 80 op2Match x (VType t) = do 81 typ <- evalValType x 80 op2Match (VType typ) (VType t) = do 82 81 cls <- asks envClasses 83 82 return $ VBool (isaType cls (showType t) typ) 83 84 op2Match x y@(VType _) = do 85 typ <- evalValType x 86 op2Match (VType typ) y 84 87 85 88 op2Match x (VSubst (rx, subst)) | rxGlobal rx = do
