Fix pprinting global names
Einar Karttunen <[email protected]> Thu, 31 Aug 2006 03:58:08 +0300
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <20060831005808.GA7492@localdomain> |
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 _______________________________________________ template-haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/template-haskell
noname.patch
(text/plain, 1.3 KB)
New patches: [Omit package names when pretty-printing Names. Einar Karttunen <[email protected]>**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 <[email protected]>**20060811152924] [Improve pretty-printing for Template Haskell [email protected]**20060807093127 Fixes Trac #842 ] [Add Show instances [email protected]**20060622102114] [Fix a bug in mkName; merge to STABLE [email protected]**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 <[email protected]>**20060725141918 A NameG now needs to store the package name, too. ] [Drop dependency to haskell98 package Einar Karttunen <[email protected]>**20060209224626] [TAG Initial conversion from CVS complete John Goerzen <[email protected]>**20060112154138] Patch bundle hash: a046baddb1616f25be77e4a2c6aa7b9cf03188c4