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

2010-10-03 Thread C K Kashyap
> > mention_only_once file action = do >   want [file] >   file *> action > > main = mention_only_once "file1" $ \x -> do need ["file2"] >                                            putStrLn "Hello" >                                            putStrLn "World" > > Thanks Bulat I guess even th

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

2010-10-03 Thread Bulat Ziganshin
Hello C, Sunday, October 3, 2010, 6:59:25 PM, you wrote: > Thanks Neil, >> main = do >>  want ["file1"] >>  "file1" *> \x -> do >>    need ["file2"] >>    putStrLn "Hello" >>    putStrLn "World" > What if I want to mention "file1" only once? mention_only_once file action = do  want [file]  f

Re: [Haskell-cafe] EDSL for Makefile

2010-10-03 Thread C K Kashyap
Thanks Neil, > main = do >  want ["file1"] >  "file1" *> \x -> do >    need ["file2"] >    putStrLn "Hello" >    putStrLn "World" What if I want to mention "file1" only once? -- Regards, Kashyap ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org h

Re: [Haskell-cafe] EDSL for Makefile

2010-10-03 Thread Neil Mitchell
> 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

Re: [Haskell-cafe] EDSL for Makefile

2010-10-02 Thread C K Kashyap
> > Thanks Emil ... yeah, that works...I was wondering what I could do to > not have to mention "r1" explicitly. > I'll check out Neil's pdf and video now - perhaps I'll find answers there. > I checked out the video - nice - but I think, understandably, since its not open source yet, not much of i

Re: [Haskell-cafe] EDSL for Makefile

2010-10-01 Thread C K Kashyap
On Thu, Sep 30, 2010 at 5:35 PM, Emil Axelsson wrote: > How about: > >  execute ("gcc -c " ++ dependencyList ++ " -o " ++ target r1) > > / Emil Thanks Emil ... yeah, that works...I was wondering what I could do to not have to mention "r1" explicitly. I'll check out Neil's pdf and video now - perh

Re: [Haskell-cafe] EDSL for Makefile

2010-10-01 Thread C K Kashyap
Thanks Neil On Sat, Oct 2, 2010 at 10:07 AM, Don Stewart wrote: > Neil's > >    * slides http://www.galois.com/~dons/talks/hiw-2010/ndm-shake.pdf >    * video  http://www.vimeo.com/15465133 > > ckkashyap: >> Hi Neil ... how did the talk go? >> >> On Thu, Sep 30, 2010 at 10:23 PM, Neil Mitchell

Re: [Haskell-cafe] EDSL for Makefile

2010-10-01 Thread Don Stewart
Neil's * slides http://www.galois.com/~dons/talks/hiw-2010/ndm-shake.pdf * video http://www.vimeo.com/15465133 ckkashyap: > Hi Neil ... how did the talk go? > > On Thu, Sep 30, 2010 at 10:23 PM, Neil Mitchell wrote: > >>> What great timing! I will be giving a talk at the Haskell Imple

Re: [Haskell-cafe] EDSL for Makefile

2010-10-01 Thread C K Kashyap
Hi Neil ... how did the talk go? On Thu, Sep 30, 2010 at 10:23 PM, Neil Mitchell wrote: >>> What great timing! I will be giving a talk at the Haskell Implementors >>> Workshop tomorrow about the Make system Shake. It will be video taped >>> and I can send you the slides after I've given the talk.

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread Neil Mitchell
>> What great timing! I will be giving a talk at the Haskell Implementors >> Workshop tomorrow about the Make system Shake. It will be video taped >> and I can send you the slides after I've given the talk. So wait a >> day, and I'll give you all the answers. > > Will you publish the tool too? ;-)

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread Magnus Therning
On Thu, Sep 30, 2010 at 13:05, Neil Mitchell wrote: > Hi, > > What great timing! I will be giving a talk at the Haskell Implementors > Workshop tomorrow about the Make system Shake. It will be video taped > and I can send you the slides after I've given the talk. So wait a > day, and I'll give you

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread Neil Mitchell
Hi, What great timing! I will be giving a talk at the Haskell Implementors Workshop tomorrow about the Make system Shake. It will be video taped and I can send you the slides after I've given the talk. So wait a day, and I'll give you all the answers. Thanks, Neil On Thu, Sep 30, 2010 at 6:02 AM

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread Emil Axelsson
How about: execute ("gcc -c " ++ dependencyList ++ " -o " ++ target r1) / Emil 2010-09-30 10:41, C K Kashyap skrev: 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 {

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread C K Kashyap
Hi Warren, > You might want to take a look at http://github.com/nfjinjing/nemesis > which is somewhat related. The above looks like a DSL approach and not an EDSL approach. -- Regards, Kashyap ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org htt

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread C K Kashyap
Thanks Neil and Warren. On Thu, Sep 30, 2010 at 3:32 PM, Neil Brown wrote: > On 30/09/10 09:41, C K Kashyap 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

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread Neil Brown
On 30/09/10 09:41, C K Kashyap 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)

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread Warren Henning
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 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/

[Haskell-cafe] EDSL for Makefile

2010-09-30 Thread C K Kashyap
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 de