[Haskell-cafe] EDSL for Makefile

Neil Mitchell ndmitchell at gmail.com
Sun Oct 3 10:19:14 EDT 2010

> I checked out the video - nice - but I think, understandably, since
> its not open source yet, not much of implementations details were
> mentioned.

Yes, it's unfortunate.

> So, I have this "unanswered question" nagging in my head. In the
> example below, how can I let the makefile writer refer to the target
> name and dependencies. Likr Emil mentioned, I could use "target r1"
> but I want to avoid having to mention r1.

If it helps, written in Shake, this would be:

main = do
  want ["file1"]
  "file1" *> \x -> do
    need ["file2"]
    putStrLn "Hello"
    putStrLn "World"

Thanks, Neil

More information about the Haskell-Cafe mailing list