[Template-haskell] Fix pprinting global names

Einar Karttunen ekarttun at cs.helsinki.fi
Wed Aug 30 20:58:08 EDT 2006


Hello

The recent commit added package names to pprinting
global names. The attached patch reverts that - which
is nice for actually using the pprinted representation
and agrees with the comments in the file.

e.g. base:GHC.Show.Show -> GHC.Show.Show

Patch attached.

- Einar Karttunen
-------------- next part --------------

New patches:

[Omit package names when pretty-printing Names.
Einar Karttunen <ekarttun at cs.helsinki.fi>**20060831005500] {
hunk ./Language/Haskell/TH/Syntax.hs 423
-  show (Name occ (NameG ns p m)) = pkgString p ++ ":" ++ modString m
-                                          ++ "." ++ occString occ
+  show (Name occ (NameG ns p m)) = modString m ++ "." ++ occString occ
}

Context:

[bump version to 2.0
Simon Marlow <simonmar at microsoft.com>**20060811152924] 
[Improve pretty-printing for Template Haskell
simonpj at microsoft.com**20060807093127
 
 Fixes Trac #842
 
] 
[Add Show instances
simonpj at microsoft.com**20060622102114] 
[Fix a bug in mkName; merge to STABLE
simonpj at microsoft.com**20060622101910
 
 The little qualified-name parser inside mkName was mis-parsing
 names like ".&." (which is exported by Data.Bits).
 
 This commit fixes the problem.  It should merge into 6.3
 
] 
[Modifications required by the changes to package support in GHC
Simon Marlow <simonmar at microsoft.com>**20060725141918
 A NameG now needs to store the package name, too.
] 
[Drop dependency to haskell98 package
Einar Karttunen <ekarttun at cs.helsinki.fi>**20060209224626] 
[TAG Initial conversion from CVS complete
John Goerzen <jgoerzen at complete.org>**20060112154138] 
Patch bundle hash:
a046baddb1616f25be77e4a2c6aa7b9cf03188c4


More information about the template-haskell mailing list