On Tue, 2008-08-05 at 10:30 +0100, Claus Reinke wrote:
> > contrast, Cabal stores all generated files in a separate directory
> > (compiler/dist-stage[1/2]), and thus doesn't need to look at relative
> > timestamps; so it gets confused by the old, leftover Parser.hs et al.
> 
> While that is cleaner, it also takes some getting used to, as generated
> sources are no longer in source directories - then again, they aren't
> often readable anyway, and perhaps there will be fewer things to go
> wrong with them.
> 
> It is confusing, though, that Cabal silently uses compiler/parser/Parser.hs,
> if it is meant to generate and use compiler/dist-stage[12]/Parser.hs.
> 
> There should be a Cabal warning: 
> "variant of generated file in source dir, using that instead of generated 
> file".

As far as I know, if you've got compiler/parser/Parser.hs
and compiler/parser/Parser.y then Cabal ignores the .hs one and
pre-processes the .y one into dist/ and uses the .hs from dist.

If you're finding the opposite it's a bug and we need it reported with
enough details to reproduce.

Duncan

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to