Changeset 10301 for src/Pugs/CodeGen

Show
Ignore:
Timestamp:
05/11/06 23:39:30 (3 years ago)
Author:
gaal
svk:copy_cache_prev:
13387
Message:

* use CompUnit? type for compilation serialization. For now

this doesn't buy us much except future-compatibility (or,
well, resilience); the new structure has a version field.
Please 'rm blib6/lib/Prelude.pm.yml' once after updating.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/CodeGen/YAML.hs

    r10059 r10301  
    1717    -- munge the glob to filter out prim stuff in it 
    1818    main    <- asks envBody 
    19     yaml    <- liftIO $ toYamlNode (pad', main) 
     19    yaml    <- liftIO $ toYamlNode $ mkCompUnit "<unused>" pad' main 
    2020    return (VStr $ show yaml) 
    2121 
     
    2727    -- munge the glob to filter out prim stuff in it 
    2828    main    <- asks envBody 
    29     yaml    <- liftIO $ showYaml (pad', main) 
     29    yaml    <- liftIO $ showYaml $ mkCompUnit "<unused>" pad' main 
    3030    return (VStr yaml) 
    3131