Re: [Haskell-cafe] Cabal, lib and exe in one

2007-05-02 Thread Simon Marlow
Duncan Coutts wrote: On Tue, 2007-05-01 at 22:29 +0100, Magnus Therning wrote: So if foo.hs is in test-src and Foo/Bar.hs is in src then I think you just need: hs-source-dirs: test-src, src No, that's not enough, I also have to add the following lines to make the executable compile and link:

Re: darcs patch: added cppOptions and c2hsOptions

2007-05-02 Thread Ross Paterson
On Wed, May 02, 2007 at 09:09:47AM +0100, Duncan Coutts wrote: > On Wed, 2007-05-02 at 00:31 +0100, Ross Paterson wrote: > > BTW, since you're now collecting Haskell files in a single build > > hierarchy, you could copy the main-is to Main.[l]hs in that hierarchy, > > Why would we want to do that?

Re: darcs patch: added cppOptions and c2hsOptions

2007-05-02 Thread Duncan Coutts
On Wed, 2007-05-02 at 00:31 +0100, Ross Paterson wrote: > On Tue, May 01, 2007 at 03:45:00PM +0100, Duncan Coutts wrote: > > Also, I've still got the platform-independent pre-processed files going > > back into the src dirs. This isn't nice. The only reason I'm doing that > > is not to break sdist,