Discovery of source dependencies without --make

Evan Laforge qdunkan at gmail.com
Fri Nov 28 09:09:57 UTC 2014


Here's what I use:

http://ofb.net/~elaforge/shake/Shake/HsDeps.hs

It's a very dumb but fast parser that figures out dependencies.  I use
it for my shake build system.  Not sure if it's useful, but there it
is if it helps.

If you have a complicated build setup and you're not using shake,
maybe you should consider it :)

On Fri, Nov 28, 2014 at 12:52 AM, Lars Hupel <lars at hupel.info> wrote:
> 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
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


More information about the Glasgow-haskell-users mailing list