[Haskell-cafe] TH splicing and recompilation checking
Tristan Ravitch
travitch at cs.wisc.edu
Tue Jul 16 21:01:00 CEST 2013
I think you want qAddDependentFile in Language.Haskell.TH.Syntax
http://hackage.haskell.org/packages/archive/template-haskell/2.7.0.0/doc/html/Language-Haskell-TH-Syntax.html
On Tue, Jul 16, 2013 at 05:41:19PM +0000, Johannes Waldmann 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130716/f176849d/attachment.pgp>
More information about the Haskell-Cafe
mailing list