"Simon Marlow" <[EMAIL PROTECTED]> writes:
> > It may be of interest to note that hmake currently uses
> > solution 2 below.
>
> And this is also what the current CVS version of GHC does. Note that
> you need to create the directories if they don't exist (GHC won't do it
> for you).
Whereas hm
> Martin Norbäck <[EMAIL PROTECTED]> writes:
>
> > The GHC manual needs to specify what happens when you use -odir and
> > hierarchical modules with --make.
>
> It may be of interest to note that hmake currently uses
> solution 2 below.
>
> > Solution 2: files put in -odir are put in directori
Sven Panne wrote:
> Allowing leaf names to be equal is essential for the whole hierarchical
> module business!
Obviously, yes.
> Otherwise you would get evil non-local interactions
> between different modules. And in practice it doesn't seem to be a problem
> for ar/ld, because the base package a
Henrik Nilsson wrote:
> [...] Well, ar does not support directories anyway, so if the objective
> here is to build a link library, the leaf names had better be distinct.
> (At least GNU make does seem to allow putting two object files with the
> same name into a link library if done as a single op
Martin Norbäck wrote:
> What should be done about it?
>
> Solution 1: -odir is relative to the source directory (files will end up
> in Library/Bar/output/Module.o and Library/Foo/output/Module.o).
> This is a change of semantics from the earlier behaviour of -odir (files
> are put in another pla
Martin Norbäck <[EMAIL PROTECTED]> writes:
> The GHC manual needs to specify what happens when you use -odir and
> hierarchical modules with --make.
It may be of interest to note that hmake currently uses solution 2 below.
> Solution 2: files put in -odir are put in directories (files will end u
The GHC manual needs to specify what happens when you use -odir and
hierarchical modules with --make.
I posted to the list about this before but it was not resolved:
http://www.haskell.org/pipermail/glasgow-haskell-users/2002-October/004178.html
Here is an example:
.
|-- Library
| |-- Bar
|