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

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to