Changeset 8689 for src/Pugs/Compile.hs

Show
Ignore:
Timestamp:
01/15/06 20:24:08 (3 years ago)
Author:
audreyt
Message:

* only explicitly rebind pads if we are importing from somewhere else.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile.hs

    r8677 r8689  
    152152        padC    <- compile $ padToList pad 
    153153        let symC = (map fst $ padToList pad) `zip` padC 
    154             exps = [ Syn ":=" [Var name, Var from] | (name, PRawName from) <- symC ] 
     154            exps = [ Syn ":=" [Var name, Var from] | (name, PRawName from) <- symC, name /= from ] 
    155155        expC    <- compile $ mergeStmts (foldl1 mergeStmts (exps ++ [exp])) rest 
    156156        return $ PPad scope symC expC