Hi,
I'm experimenting with a preprocessor to automatically generate test
drivers[1]. The result depends on the existence of other files on the
disk. When files are added or removed, the test driver has to be
regenerated.
Ideally ghc would just always recompile that single file (akin to make's
.P
Hello Simon,
You can use Template Haskell's addDependentFile to register a
dependency on external files.
http://hackage.haskell.org/packages/archive/template-haskell/2.7.0.0/doc/html/Language-Haskell-TH-Syntax.html#v:addDependentFile
You can also put -fforce-recomp in an OPTIONS_GHC pragma to as
Hi Etienne,
thanks for your reply.
> You can use Template Haskell's addDependentFile to register a
> dependency on external files.
>
> http://hackage.haskell.org/packages/archive/template-haskell/2.7.0.0/doc/html/Language-Haskell-TH-Syntax.html#v:addDependentFile
That's interesting. But from wh