
#14476: Keep source locations in Core (optionally) -------------------------------------+------------------------------------- Reporter: nomeata | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.3 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 bgamari): Okay: I recommend they use `SourceNote`s instead of cost centers ;) That being said, we don't offer a terribly great way to communicate to GHC that it should add source notes. The only way currently is `-g` (corresponding to the `debugLevel` `DynFlags` field) however it also controls code generation so it may not be appropriate for a plugin. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14476#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler