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. _______________________________________________ Hugs-Bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/hugs-bugs
