External Core: print function types correctly, improve newtype pretty-printing
authorTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 28 Mar 2008 22:26:30 +0000 (22:26 +0000)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 28 Mar 2008 22:26:30 +0000 (22:26 +0000)
commitf555abffd676544cd13d022bf1eb829e63f7aebe
treed321f5a7be7b9f756edf4a01446db016fdc6f527
parent0a9b1362c9103c17a9f662287fd65c8779bcf4ef
External Core: print function types correctly, improve newtype pretty-printing

- In a previous patch I broke the printing of fully-applied arrow
types (e.g., "a -> b" was "(ghczmprim:GHCziPrim a b)") by z-encoding
package names and not updating the primitive module name as defined in
External Core accordingly. Fixed. (Mega sigh...)

- Make newtype decls print slightly more readably.
compiler/coreSyn/ExternalCore.lhs
compiler/coreSyn/PprExternalCore.lhs