Re: [Haskell-cafe] FW: Treating command-line arguments as a Haskell expression

2007-12-24 Thread Neil Mitchell
Hi > I want to call a function from within Haskell module so that the name > of this function corresponds to my first command-line argument and the > rest rest of the command-line arguments are would become themselves > the argument to this function. While you can do this, you probably don't act

Re: [Haskell-cafe] FW: Treating command-line arguments as a Haskell expression

2007-12-24 Thread Sterling Clover
As the previous answers show, hooking dynamic evaluation, or a subset thereof, into Haskell is not a particularly easy task. If this is just a program to get up-and-running with understanding Haskell, probably best not to delve into this sorts of stuff? A simpler solution, albeit one which

Re: [Haskell-cafe] FW: Treating command-line arguments as a Haskell expression

2007-12-24 Thread Yitzchak Gale
Simon Peyton-Jones: >> Would someone familiar with the command-line-parsing libraries care to help Krassimir? I agree with Max that it looks like the problem is not doing any fancy command-line parsing (if that is indeed the issue, then please post more information about what the problem is). Rath

Re: [Haskell-cafe] FW: Treating command-line arguments as a Haskell expression

2007-12-24 Thread Max Vasin
2007/12/24, Simon Peyton-Jones <[EMAIL PROTECTED]>: > Would someone familiar with the command-line-parsing libraries care to help > Krassimir? AFAIU Krassimir's needs, hs-plugins will help him (function eval). -- WBR, Max Vasin JID: [EMAIL PROTECTED] ___

[Haskell-cafe] FW: Treating command-line arguments as a Haskell expression

2007-12-24 Thread Simon Peyton-Jones
Would someone familiar with the command-line-parsing libraries care to help Krassimir? Thanks Simon -Original Message- From: Krassimir Krustev [mailto:[EMAIL PROTECTED] Sent: 23 December 2007 11:38 To: Simon Peyton-Jones Subject: Treating command-line arguments as a Haskell expression D