Manuel M T Chakravarty wrote: > Roman Leshchinskiy: > >> Simon Marlow wrote: >> >>> >>> No, it doesn't work like that because we wouldn't get enough >>> parallelism. Dependencies are tracked at the module level, so the >>> dependency graph that make sees contains all modules of all >>> libraries, including GHC itself. The Build-depends line is used to >>> ensure that we configure packages in the correct order. >>> >>> Unfortunately Template Haskell (and hence annotations) breaks this >>> idea, because TH needs the whole package compiled in order to load it. >>> This >>> fragment from ghc.mk might be illuminating: >> >> Should we just abandon TH in DPH and use something else to generate our >> boilerplate? We could also use something other than annotations for >> configuring SpecConstr. It really seems to be more trouble than it's >> worth to me. It's not the first time we've run into problems with TH. > > I agree that TH and Annotations in the GHC build system are very > annoying. However, we need to get this build problem fixed quickly and > replacing the use of TH and Annotations in DPH would take a considerable > while.
I meant in general, not necessarily right now. For this particular problem, it seems to me that the build system should respect package dependencies for packages which are compiled by the stage2 compiler. After all, the only reason they must be compiled by stage2 is because they need TH. Roman _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
