
#8624: -ddump-splices-file -------------------------------------+------------------------------------ Reporter: GregWeber | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by nomeata): Yay bikeshedding: I’d recommend `Foo.th`, just like the `.imports` file that `-ddump- minimal-imports` generates. That is probably a feature you’d want to look at, as it is somewhat similar to what you want. Also, it would be useful if the `.th` file contains precise code locations of the origin of the splices. This would allow the tools that replace TH splices by their output in the original file to use the `.th` file conveniently. Bonus points (well, different and more complicated feature actually, so ignore this for now): Enable a mode where `GHC` will read the `.th` file and use that instead of actually running Template Haskell. Distributing the `.th` files will then allow building packages on architectures where Template Haskell is not available. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8624#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler