<div dir="ltr">Yup, such a thing exists!  I think it&#39;s a little bit obscure because for some bizarre reason it isn&#39;t reexported by <a href="http://Language.Haskell.TH">Language.Haskell.TH</a>:<br><br><a href="http://hackage.haskell.org/packages/archive/template-haskell/2.8.0.0/doc/html/Language-Haskell-TH-Syntax.html#v:addDependentFile">http://hackage.haskell.org/packages/archive/template-haskell/2.8.0.0/doc/html/Language-Haskell-TH-Syntax.html#v:addDependentFile</a><br>

<br>-Michael</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 16, 2013 at 10:41 AM, Johannes Waldmann <span dir="ltr">&lt;<a href="mailto:waldmann@imn.htwk-leipzig.de" target="_blank">waldmann@imn.htwk-leipzig.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
we are using template Haskell to splice in some code<br>
that is produced by reading and transforming the contents of another file.<br>
<br>
now, if this &quot;other file&quot; is touched (by editing),<br>
but not the main file, then ghc (and cabal) do not realize<br>
that the main file does need to be recompiled.<br>
<br>
is there a way to tell them about the dependency?<br>
<br>
(example main file:<br>
<a href="https://github.com/apunktbau/co4/blob/master/CO4/Test/Queens.hs" target="_blank">https://github.com/apunktbau/co4/blob/master/CO4/Test/Queens.hs</a>)<br>
<br>
- J.W.<br>
<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>