
17 May
2012
17 May
'12
7:41 a.m.
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/htm...
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