
#9049: Expose srcLoc from the assertion architecture to allow better error messages -------------------------------------+------------------------------------- Reporter: nh2 | Owner: gridaphobe Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.2 Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by simonpj): Replying to [comment:16 gridaphobe]:
One use-case that the implicit parameters approach supports that neither -prof nor -g really do is reifying the source locations to a data structure that your haskell program can process.
Yes. So (importantly) let's not just give access to a `String` but rather to a proper data structure with line number, module, package etc. We should use the same data structures for this purpose as the `StaticPtrInfo` fields in [wiki:StaticPointers/ImplementationPlan]. The latter are not yet well fleshed out, and advertised as subject to change. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9049#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler