Changeset 8604 for src/Pugs/Prim/Yaml.hs

Show
Ignore:
Timestamp:
01/07/06 11:59:25 (3 years ago)
Author:
gaal
Message:

* .yaml emits objects.

TODO:
- make it parse them, too
- serialize rules, native types, etc.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Yaml.hs

    r8603 r8604  
    6767    hash    <- fromVal v :: Eval VHash 
    6868    attrs   <- toYaml $ VRef (hashRef hash) 
    69     return $ addTag (Just $ "!pugs:object/" ++ showType (objType obj)) attrs 
     69    return $ addTag (Just $ "tag:pugs:object:" ++ showType (objType obj)) attrs 
    7070    where 
    7171    addTag _   (YamlMap (Just x) _) = error ("can't add tag: already tagged with" ++ x)