Cabal: bindir/libdir/datadir
Simon Marlow
simonmar at microsoft.com
Mon Oct 10 08:26:50 EDT 2005
On 07 October 2005 13:06, Ross Paterson wrote:
> On Fri, Oct 07, 2005 at 01:05:04PM +0100, Ross Paterson wrote:
>> On Fri, Oct 07, 2005 at 12:35:21PM +0100, Simon Marlow wrote:
>>> Paths.hs-inc is auto-generated, and contains
>>>
>>> getBinDir :: IO FilePath
>>> getLibDir :: IO FilePath
>>> getDataDir :: IO FilePath
>>> getLibexecDir :: IO FilePath
>>
>> Does this have to be #include'd, or could it be a module?
>
> Oops, forget I said that.
Paths.hs-inc is a pain, but the problem with making it a module is that
you have to pick a non-conflicting module name, as I'm sure you
realised.
So how about incorporating the package name into the module name, to
avoid the conflict - eg. import Paths_alex? or Cabal.Paths_alex?
Cheers,
Simon
More information about the Libraries
mailing list