Changeset 5026
- Timestamp:
- 06/27/05 20:17:15 (4 years ago)
- svk:copy_cache_prev:
- 6880
- Files:
-
- 1 modified
-
src/Pugs/Prim/Match.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/Match.hs
r4986 r5026 151 151 (return $ VMatch match) 152 152 153 op2Match (VType typ) (VType t) = do 154 typs <- pkgParents (showType typ) 155 return . VBool $ showType t `elem` typs 156 157 op2Match x y@(VType _) = do 158 typ <- fromVal x 159 op2Match (VType typ) y 160 161 {- 153 162 op2Match (VRef x) y = do 154 163 x' <- readRef x 155 164 op2Match x' y 156 157 op2Match (VType typ) (VType t) = do 158 typs <- pkgParents (showType typ) 159 return . VBool $ showType t `elem` typs 160 161 op2Match x y@(VType _) = do 162 typ <- fromVal x 163 op2Match (VType typ) y 165 -} 164 166 165 167 op2Match x y = do
