Jean-Marc Notin
unread,Jun 6, 2016, 7:05:33 AM6/6/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Stackage
Hi,
I am facing a problem with a package from Stackage, namely
pandoc-citeproc. But i guess my issue is not specific to
pandoc-citeproc.
To do its job, pandoc-citeproc relies on several data files; the path
to these files is hard-coded at compile time. Yet, everything works
fine using stack; the problem arise when I want to run my application
outside the stack environment : pandoc-citeproc complains about not
finding its data-files.
Fortunately, pandoc-citeproc offers a flag at compile time that embed
the data files in the binary package. So when I was using Cabal only,
I could manually compile pandoc-citeproc enabling that flag. But now
that I am using Stack, I did not find a similar workaround.
Specifically, I found a way in the documentation to pass flags to
extra deps packages, but not to packages from the stackage snapshot.
Is there a way to force a flag when compiling a package from a
snapshot ? Or at least is there a way to force stack to use a
customized version of a package ?
Thank you for your help !
--
Jean-Marc Notin