invoking a Haskell script without a .hs extension
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
> 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