invoking a Haskell script without a .hs extension

Paul Jarc prj at po.cwru.edu
Mon Aug 18 10:32:27 EDT 2008


Bertram Felgenhauer <bertram.felgenhauer at googlemail.com> 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!


paul


More information about the Glasgow-haskell-users mailing list