
17 Nov
2004
17 Nov
'04
9:06 a.m.
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 which circumvented the issue above by using System.Environment.withArgs. It works, but it is of course a little clunky. See the attached sources. /NAD