How to force recompilation of preprocessed files (-F -pgmF ..)
Simon Hengel
sol at typeful.net
Thu May 17 13:41:27 CEST 2012
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 what I've tried, it seems that it does not
work with GHCi.
> You can also put -fforce-recomp in an OPTIONS_GHC pragma to ask GHC to
> always recompile the file.
>
> {-# OPTIONS_GHC -fforce-recomp #-}
I think it's amazing, that this works with ghc --make. But it does not
work with GHCi, I created a ticket for that [1].
Cheers,
Simon
[1] http://hackage.haskell.org/trac/ghc/ticket/6105
More information about the Glasgow-haskell-users
mailing list