What Cabal stuff is permanent?

John Goerzen jgoerzen at complete.org
Tue Jun 7 12:15:20 EDT 2005


On Tue, Jun 07, 2005 at 08:53:39AM -0700, Isaac Jones wrote:
> John Goerzen <jgoerzen at complete.org> writes:
> >> I don't think Cabal currently has support for installing .h files, I
> >> guess that's something we need to look into (Isaac?).
> >
> > Sounds like it.
> 
> How would this look?  Let's say that include-dirs=./includes or
> something relative to the top of the source tree while building.  This
> is so that ghc can find the "includes" while building.
> 
> include-dirs gets put into ghc's package.conf file, correct?  But then
> will the installed package need an absolute path for include-dirs? Or
> can it be relative to ghc's library directory or the package root?  If
> the later, it sounds like no big deal, just create the directory and
> put anything from the "includes" field into it while installing.

Hmm.  Maybe I lost you, but didn't you mean the "include-dirs" field?
I'd say that you should recursively find .h files in the directories
specified, and copy them.

> But then sometimes the include dirs might be an absolute path, maybe?
> To indicate a .h file that this package is build-depending on? In
> which case, we might assume that the include files in there are not a
> part of the package, so we don't try to install them, but they are a
> dependency and they should be installed on the target system already.

That makes sense.

Or, you could have separate include-dirs-nocopy or something.

-- John



More information about the Libraries mailing list