Re: [Haskell-cafe] Re: EDSL for Makefile

2010-10-07 Thread C K Kashyap
which looks somewhat nicer. This example also defines runTest and a test function (which calls the shell command echo to print some lines) you can try in ghci by typing runTest test... [1] http://gist.github.com/614246 Thank you very much Steffen for taking the time out for the example ...

[Haskell-cafe] Re: EDSL for Makefile

2010-10-06 Thread steffen
The Reader monad just establishes an environment, so you can use ask to retrieve a value from the environment. Let's say you have the following types representing you Make- Environment: data MakeInfo = MakeInfo { target_ :: String , sources_ :: [String] } then inside

Re: [Haskell-cafe] Re: EDSL for Makefile

2010-10-04 Thread Neil Mitchell
Hi Telling from the video and the slide, Neil's make system is actually really cool. Indeed something I would really enjoy to use. Thanks :-) So you use want and need to tell the system about the static and dynamic dependencies. The want at the beginning just tells which targets to start.

[Haskell-cafe] Re: EDSL for Makefile

2010-10-04 Thread steffen
Telling from the video and the slide, Neil's make system is actually really cool. Indeed something I would really enjoy to use. It support dynamic and static dependency tracking (more or less) out of the box (by storing dependencies in a database file). So you use want and need to tell the system

[Haskell-cafe] Re: EDSL for Makefile

2010-10-03 Thread steffen
If you don't want to mention r1 explicitly, but want to refer to target, sources and such only a monadic approach (e.g. Reader Monad) might be what you want. On Oct 3, 6:14 am, C K Kashyap ckkash...@gmail.com wrote: Thanks Emil ... yeah, that works...I was wondering what I could do to not

Re: [Haskell-cafe] Re: EDSL for Makefile

2010-10-03 Thread C K Kashyap
On Sun, Oct 3, 2010 at 5:22 PM, steffen steffen.sier...@googlemail.com wrote: If you don't want to mention r1 explicitly, but want to refer to target, sources and such only a monadic approach (e.g. Reader Monad) might be what you want. Thanks Steffen ... would you be able to give me an