Hi Gershom, > Is -M perhaps what you’ve been looking for? sadly, no. Firstly, it behaves in the same way as "--make" (i.e. only looks at source files) and secondly, it produces a Makefile as output. (I'd be happy though to use the GHC API if somebody could tell me whether/where this functionality is exposed.) Cheers Lars