Re: ghc -e

2004-11-24 Thread Benjamin Franksen
On Wednesday 24 November 2004 02:39, Nils Anders Danielsson wrote: On Wed, 24 Nov 2004, Benjamin Franksen wrote: What about putting this thing on the Haskell Wiki? Feel free to do so. I recently noted that some version of GHC (6.3?) ships with a runghc program, so this problem will most

Re: ghc -e

2004-11-23 Thread Benjamin Franksen
On Wednesday 17 November 2004 15:06, Nils Anders Danielsson wrote: On Wed, 17 Nov 2004, Benjamin Franksen wrote: I want to use ghc as a script interpreter, using the '-e' option. The problem is that I can't give the script any command line arguments, because 'ghc -e' intepretes everything

Re: ghc -e

2004-11-23 Thread Nils Anders Danielsson
On Wed, 24 Nov 2004, Benjamin Franksen wrote: What about putting this thing on the Haskell Wiki? Feel free to do so. I recently noted that some version of GHC (6.3?) ships with a runghc program, so this problem will most likely disappear soon, though.

ghc -e

2004-11-17 Thread Benjamin Franksen
Hello, I want to use ghc as a script interpreter, using the '-e' option. The problem is that I can't give the script any command line arguments, because 'ghc -e' intepretes everything argument as the name of a module to compile. cat Test.hs import System main = getArgs = print ghc -e

Re: ghc -e

2004-11-17 Thread Nils Anders Danielsson
On Wed, 17 Nov 2004, Benjamin Franksen wrote: I want to use ghc as a script interpreter, using the '-e' option. The problem is that I can't give the script any command line arguments, because 'ghc -e' intepretes everything argument as the name of a module to compile. I once wrote a script