
#13799: -ddump-splices prints out declarations in the wrong order -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 8.0.1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Debugging | Unknown/Multiple information is incorrect | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => closed * resolution: => wontfix Comment: Upon further thought, I don't think this is a feasible thing to do. The problem is that by the time we have enough info for `-ddump-splices` to print out anything, the source has long since been renamed, and with renaming comes dependency analysis, which possibly results in declaration reordering as seen above. We could consider plumbing through the pre- renamed source to be printed as well, but that's a lot of wiring for very little gain. On the other hand, the fact that you can't splice a quoted thing with an `infix` declaration for two names in different namespaces is a very real, but separate bug. I've opened #14032 for this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13799#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler