duncan.coutts at worc.ox.ac.uk
Thu Jun 26 18:21:03 EDT 2008
On Wed, 2008-06-25 at 13:55 +0100, Simon Marlow wrote:
> Cabal has support for applications that come with data files (via the
> Paths_foo.hs mechanism) but not for *libraries* that come with data
> files, for good reasons: every client of the library would have to ship
> with the data file, install it, and be able to find it at run time.
Actually libraries can come with data files but if so then the cannot be
relocatable because otherwise we would not be able to find the data
files at runtime.
> > but i can't seem to get Cabal
> > data-files to work (symbol not found errors, iirc).
> submit a bug report?
Turned out it does work but is perhaps somewhat confusing.
> One way to avoid having to compile ghc-paths at install time is as
> follows (blame Duncan Coutts for this suggestion): use binary-patching
> on the library file to fill in the appropriate paths.
More information about the Cvs-libraries