Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
qAddDependentFile doesn't cause re-compilation without extra-source-files #4360
Steps to reproduce
It does not. However, if I add
extra-source-files: - templates/*
Method of installation
It's definitely an assumption on my part that this boils down to
I've reproduced this bug with pretty much every file-reading TH function in a standard Yesod app (
I wouldn't have guessed this was Stack's responsibility either, but
Yeah, I was referring to this: https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-extra-source-files
The workaround suggested by @pbrisbin to add the templates to
Stack has lost the association between template file and Haskell module. This is because starting in GHC 8.4, GHC does not seem to report template files in the
If you add the template file to
referenced this issue
Oct 25, 2018
@tolysz Ahh yes that was it. Thanks!!
In summary: To resolve this issue you need:
As of this writing stack 1.9.3 is not yet released. For now, you can build stack 1.9.2 from the stable branch on github and it will work.
If you use Stackage LTS, upgrade to at least 12.14, currently the latest, to get the right version of shakespeare. Or specify
A million thanks to the stack team for getting this fixed!