
#10599: Template Haskell doesn't allow `newName "type"` -------------------------------------+------------------------------------- Reporter: meteficha | Owner: goldfire Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Template Haskell | Version: 7.10.2-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): My first step toward fixing this is prohibiting export of `newName` names. But it strikes me that a good approach is to avoid adding system names to the `GlobalRdrEnv`. `newName` names are indeed system names, and I think, in general, users should never be able to refer to system names in code. Is there a reason this is a bad approach? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10599#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler