
#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): Actually, including the type signature doesn't seem feasible (or at least useful), given that {{{ foo :: Int -> Int bar :: Int -> Int foo = ... bar = ... }}} is perfectly valid. So let me amend my example [comment:2 above] to {{{ loc = nameLoc 'A.head -- loc == A.hs:4:1-5:15 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9946#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler