[Haskell-cafe] GHCi and custom preprocessors

Sylvain Henry sylvain at haskus.fr
Fri Jul 28 20:18:15 UTC 2017


Hi,

Maybe you could try adding a little bit of TH in the generated file to 
call `addDependentFile` 
(https://www.stackage.org/haddock/lts-9.0/template-haskell-2.11.1.0/Language-Haskell-TH-Syntax.html#v:addDependentFile). 
I haven't tested it though.

Sylvain


On 28/07/2017 21:59, aditya siram wrote:
> Hi all,
> I have a custom file format and custom preprocessor in my project that 
> converts it to Haskell. GHCi is unable to detect when changes are made 
> to the custom file, it only sees that the Haskell file hasn't changed 
> and doesn't reload anything. Is this even supported in GHCi?
>
> Thanks!
> -deech
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170728/48c97a2d/attachment.html>


More information about the Haskell-Cafe mailing list