Runghc patch
Isaac Dupree
isaacdupree at charter.net
Wed Aug 22 08:34:32 EDT 2007
Ian Lynagh wrote:
> Hi Magnus,
>
> On Sun, Jul 29, 2007 at 05:55:05PM -0400, Magnus Jonsson wrote:
>> Previously runghc only supported "runghc -fpath-to-ghc Main.hs".
>> With this patch it also supports "runghc -f path-to-ghc Main.hs", as it
>> claims in its syntax help message.
>
> Thanks again for the patch. Contrary to what we discussed a while ago
> on IRC, I ended up deciding to apply this anyway, and allowing -- to be
> used if you want to pass a -f flag to ghc rather than runghc.
Hmm, ghc doesn't take '-f' as an argument alone... the odd '--'
interpretation would not be needed if the "runghc -fpath-to-ghc Main.hs"
syntax were eliminated and only "runghc -f path-to-ghc Main.hs" worked.
Wrappers generally have less-annoying syntax with a fixed amount of
arguments, e.g. a separate 'runghcf' command or requiring there always
to be an argument following 'runghc' - but we probably can't do either
of those here.
Isaac
More information about the Cvs-ghc
mailing list