[Haskell-cafe] Haskell as a scripting language.

David F. Place d at vidplace.com
Wed Sep 10 18:07:46 EDT 2008

On Wed, 2008-09-10 at 16:57 -0500, John Goerzen wrote:
> Whoa, that is sneaky and clever.  But it will fail the minute you try
> to run this on a compiled program, because then getProgName will give
> you the binary executable.

Sooooo, I won't do that.  In addition to getProgName getting the binary,
the compiler would have thrown away the comments.  The point is that
this is a convenient way to write simple scripts.

More information about the Haskell-Cafe mailing list