invoking a Haskell script without a .hs extension

Paul Jarc prj at
Mon Aug 18 10:32:27 EDT 2008

Bertram Felgenhauer <bertram.felgenhauer at> wrote:
> Paul Jarc wrote:
>> Maybe runhaskell should automatically add "-x hs" to the ghc
>> command?
> The 6.9 branch version of runghc does that, actually.

Ah, that's good news.

> There's an undocumented runghc flag which I found by looking at the
> source code, --ghc-arg, that can be used for this.
>   runghc -x --ghc-arg=hs notify

That works, thanks!


More information about the Glasgow-haskell-users mailing list