How to force recompilation of preprocessed files (-F -pgmF ..)

Simon Hengel sol at
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.

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].



More information about the Glasgow-haskell-users mailing list