
#13054: Generating unique names with template haskell -------------------------------------+------------------------------------- Reporter: tim-m89 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.1 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 simonpj): It doesn't look like a hornets nest to me. In the example you give, the occurrence of `con2Tag` is simply ambiguous because there are two bindings, both with the same unqualified name. I think the `RdrName`s generated by `newName` are `Exact`, right? Not `Unqual`. Maybe the renamer should not complain about collisions between `Exact` top-level names. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13054#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler