Re: Cabal preprocessing

2006-11-30 Thread Ulf Norell
On Nov 30, 2006, at 11:13 AM, Henrik Nilsson wrote: > The problem with that is that someone getting the sources might get > the idea that the preprocessed file is an actual source file and try > to modify it (or just make sense of it, imagine someone trying to read > a happy parser...).

Re: Cabal preprocessing

2006-11-30 Thread Ulf Norell
On Nov 30, 2006, at 2:14 AM, Duncan Coutts wrote: - are there strong reasons for putting preprocessed files in src? Mostly, not having got round to doing it. If you're volunteering to look into doing this, then great! I wish I had the time... I have the feeling that this would be a non-

Re: Cabal preprocessing

2006-11-30 Thread Ulf Norell
On Nov 29, 2006, at 10:21 PM, Stefan Holdermans wrote: - are there strong reasons for putting preprocessed files in src? One reason could be that, when distributing *sources*, you'd want the generated file to be included as well (that is, you want to regard it as a source file), for the s

Re: Cabal preprocessing

2006-11-29 Thread Duncan Coutts
On Wed, 2006-11-29 at 17:12 +0100, Ulf Norell wrote: > Hi. > > Currently when Cabal preprocesses a module the result ends up in the > source directory. I would have expected it to end up in dist, since > it's a generated file and not a source file. I would tend to agree. Wherever possible I t