-W option

Ross Paterson ross at soi.city.ac.uk
Thu Sep 18 16:17:48 EDT 2003


On Wed, Sep 17, 2003 at 04:03:07PM -0400, Paul Hudak wrote:
> This isn't really a bug report, but I wasn't sure where else to ask the 
> following question.  Hugs used to handle all of my SOE code with no 
> problem.  Now, however, I get the error message:
> 
>   ERROR "C:\Program Files\Hugs98\lib\exts\MarshalUtils.hs":2 -
>   Syntax error in module definition (unexpected keyword "with
>   "; possible cause: -W option not used.)
> 
> Indeed, when I invoke Hugs -W from a command line, everything works 
> fine.  So the problem is apparently because Hugs used to allow this 
> language extension as a default, and now doesn't.

I think the problem is that Hugs (up to and including Nov2002) had +W
set (to support the obsolete syntax for implicit parameters) if you set -98.
But now because that syntax is obsolete, MarshalUtils uses "with" as an
identifier.

> I would hate to tell 
> everyone using SOE that they have to invoke Hugs from a command prompt, 
> so I'm looking for an alternative suggestion if you have any.  Of 
> course, I could rewrite the code, but it's actually Alastair's code, and 
> I'm not sure how big of an effort it is...

The two sides of the problem (+W and MarshalUtils) are both in Hugs,
I think.

But what puzzles me is how hugs got the -98 option.  Maybe you can pass
-W the same way.


More information about the Hugs-Bugs mailing list