Re: Discovery of source dependencies without --make

2015-12-13 Thread Thomas Miedema
On Fri, Nov 28, 2014 at 3:41 PM, Lars Hupel wrote: > Let's say the hypothetical feature is selected via the GHC flag > "--topo-sort". It would add a step before regular compilation and > wouldn't affect any other flag: > > ghc -c --topo-sort fileA.hs fileB.hs ... > > This

Re: Discovery of source dependencies without --make

2015-12-13 Thread Edward Z. Yang
I missed context, but if you just want the topological graph, depanal will give you a module graph which you can then topsort with topSortModuleGraph (all in GhcMake). Then you can do what you want with the result. You will obviously need accurate targets but frontend plugins and guessTarget