<div dir="ltr">Hello guys,<div><br></div><div>I&#39;m pretty sure the answer is &quot;no&quot;, but I was hoping to get some extra insight / best practices. The problem can be summarised by this SO question (not the OP, but I have the same problem):</div>
<div><br></div><div><a href="http://stackoverflow.com/questions/15731170/cabal-how-to-add-text-file-as-a-build-dependency">http://stackoverflow.com/questions/15731170/cabal-how-to-add-text-file-as-a-build-dependency</a><br>
</div><div><br></div><div>As someone states, &quot;data-files&quot; in for run-time, whereas I need to tell cabal &quot;please copy these files in place before trying to compile&quot;, so at compile-time.</div><div><br></div>
<div>Does something similar exist?</div><div><br></div><div>I think the best solution, unless someone prove me wrong, is to create a small startup script which copies the files for me (I *think* yesod is using something similar, namely a script called EmbeddedFiles.hs) and then triggers &quot;cabal install&quot; the usual way. Can you come up with a better way?</div>
<div><br></div><div>Thanks in advance!</div><div><br></div><div>Alfredo</div></div>