[Haskell-cafe] EDSL for Makefile

Warren Henning warren.henning at gmail.com
Thu Sep 30 05:46:11 EDT 2010


Hi,

You might want to take a look at http://github.com/nfjinjing/nemesis
which is somewhat related.

Warren

On Thu, Sep 30, 2010 at 1:41 AM, C K Kashyap <ckkashyap at gmail.com> wrote:
> Hi All,
> I was thinking about doing an EDSL for Makefile (as an exercise)
> I put down my line of thought here -
> http://hpaste.org/40233/haskell_makefile_edsl
>
> I'd appreciate some feedback on the approach. Also, I wanted some idea
> on how(in the current approach) I could make the target name and the
> dependency available to the action writer - as shown below.
>
> r1 = Rule {
>        target = "file1",
>        dependsOn = ["file2"],
>        action = do
>                        execute ("gcc -c " ++ dependencyList ++ " -o " ++ target)
> }
>
>
> --
> Regards,
> Kashyap


More information about the Haskell-Cafe mailing list