
#13237: Extend TH with addModCStub -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez | facundo.dominguez Type: feature request | Status: patch Priority: normal | Milestone: 8.2.1 Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: inline-c Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3106 Wiki Page: | -------------------------------------+------------------------------------- Comment (by nh2): What I had in mind is the following: You have a module that exposes some function `f` that is implemented in C. You have another module that contains a TH function `t` that that calls `f` at compile time. And a third module that uses `$(t)` to generate some code. Then the third module has to be recompiled when the C code or its includes change. Of course this question depends on whether the scenario above is even already possible. To my knowledge with `inline-c` it is not currently possible, but I might be wrong. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13237#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler