Re: Parallel building multiple targets

2014-01-23 Thread John Lato
On Jan 23, 2014 1:28 AM, "Simon Marlow" wrote: > > On 23/01/14 03:52, John Lato wrote: > >> However, these are all rather obviously fixable as part of the build >> system. For me, the worst problems have to do with cleaning. If you're >> using a Makefile, typically you want to leave intermediate

Re: Parallel building multiple targets

2014-01-23 Thread Simon Marlow
On 23/01/14 03:52, John Lato wrote: However, these are all rather obviously fixable as part of the build system. For me, the worst problems have to do with cleaning. If you're using a Makefile, typically you want to leave intermediate object files around and only rebuild them when the sources

Re: Parallel building multiple targets

2014-01-22 Thread John Lato
On Wed, Jan 22, 2014 at 12:25 AM, Simon Marlow wrote: > On 05/01/2014 23:48, John Lato wrote: > >> (FYI, I expect I'm the source of the suggestion that ghc -M is broken) >> >> First, just to clarify, I don't think ghc -M is obviously broken. >> Rather, I think it's broken in subtle, unobvious w

Re: Parallel building multiple targets

2014-01-22 Thread Simon Marlow
On 05/01/2014 23:48, John Lato wrote: (FYI, I expect I'm the source of the suggestion that ghc -M is broken) First, just to clarify, I don't think ghc -M is obviously broken. Rather, I think it's broken in subtle, unobvious ways, such that trying to develop a make-based project with ghc -M wil

Re: Parallel building multiple targets

2014-01-05 Thread John Lato
On Sun, Jan 5, 2014 at 3:54 PM, Erik de Castro Lopo wrote: > John Lato wrote: > > > ghc --make doesn't allow building several binaries in one run, however if > > you use cabal all the separate runs will use a shared build directory, so > > subsequent builds will be able to take advantage of the in

Re: Parallel building multiple targets

2014-01-05 Thread Erik de Castro Lopo
John Lato wrote: > ghc --make doesn't allow building several binaries in one run, however if > you use cabal all the separate runs will use a shared build directory, so > subsequent builds will be able to take advantage of the intermediate output > of the first build. As long as the ghc-options f

Re: Parallel building multiple targets

2014-01-05 Thread John Lato
(FYI, I expect I'm the source of the suggestion that ghc -M is broken) First, just to clarify, I don't think ghc -M is obviously broken. Rather, I think it's broken in subtle, unobvious ways, such that trying to develop a make-based project with ghc -M will fail at various times in a non-obvious

Parallel building multiple targets

2014-01-05 Thread Sami Liedes
Hi, I have a Haskell project where a number of executables are produced from mostly the same modules. I'm using a Makefile to enable parallel builds. I received advice[1] that ghc -M is broken, but that there is parallel ghc --make in HEAD. As far as I can tell, ghc --make does not allow building