incomplete support for record types in the abstract syntax

This commit is contained in:
krasimir
2009-03-16 14:41:49 +00:00
parent a2c682cf0e
commit 9cae779ac5
5 changed files with 54 additions and 2 deletions

View File

@@ -186,6 +186,8 @@ val2expP safe v = case v of
VGen i x -> if safe
then prtBad "unsafe val2exp" v
else return $ Vr $ x --- in editing, no alpha conversions presentv
VRecType xs->do xs <- mapM (\(l,v) -> val2expP safe v >>= \e -> return (l,e)) xs
return (RecType xs)
VType -> return typeType
where
substVal g e = mapPairsM (val2expP safe) g >>= return . (\s -> substTerm [] s e)