
#9946: Expose the source location of template-haskell Names -------------------------------------+------------------------------------- Reporter: gridaphobe | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by gridaphobe): There is, unfortunately, a subcase in (1) that I forgot above, namely wired-in `Name`s. We can't ever hope to produce a useful `SrcLoc` from `nameSrcLoc '[]`. This alone is a pretty strong argument to return a `Maybe SrcLoc`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9946#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler