[Haskell-cafe] TH splicing and recompilation checking

Erik Hesselink hesselink at gmail.com
Tue Jul 16 19:49:58 CEST 2013


There is a GHC ticket about implementing a DEPENDS pragma for doing
this [0]. There are patches attached, but it looks like it isn't
finished yet.

Erik

[0] http://ghc.haskell.org/trac/ghc/ticket/4900

On Tue, Jul 16, 2013 at 7:41 PM, Johannes Waldmann
<waldmann at imn.htwk-leipzig.de> wrote:
> Hi.
>
> we are using template Haskell to splice in some code
> that is produced by reading and transforming the contents of another file.
>
> now, if this "other file" is touched (by editing),
> but not the main file, then ghc (and cabal) do not realize
> that the main file does need to be recompiled.
>
> is there a way to tell them about the dependency?
>
> (example main file:
> https://github.com/apunktbau/co4/blob/master/CO4/Test/Queens.hs)
>
> - J.W.
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe




More information about the Haskell-Cafe mailing list