Change syntax for qualified names in External Core
authorTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 27 Mar 2008 18:54:36 +0000 (18:54 +0000)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 27 Mar 2008 18:54:36 +0000 (18:54 +0000)
commit81e51a265d315609cb28e190fc59ca690f5f5d6e
tree0b5995c5a5edf11ce66a3bdf352bb04ea691fdd5
parentd74b100eaa9e782710b752805ac148e91e5c6850
Change syntax for qualified names in External Core

Two changes that make the ext-core code uglier but the parser easier:

- Prefix qualified names with "^" so that we can more easily
distinguish a qualified name:
   ^a:Foo.Bar.quux
from an unqualified name:
   a

- z-encode package names ("ghc-prim" was the culprit.)
compiler/coreSyn/MkExternalCore.lhs
compiler/coreSyn/PprExternalCore.lhs