-W option
Alastair Reid
alastair at reid-consulting-uk.ltd.uk
Thu Sep 18 18:37:34 EDT 2003
> [...] 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.)
> [...]
> 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 error report comes when loading MarshalUtils.hs which is one of the new
standard FFI libraries and defines a function called 'with'. It's an
incredibly useful library that would be painful to avoid.
I'd say the problem is in Hugs. Why does it have a setting which prevents it
from being able to load standard libraries? It's now something like 2 years
since we agreed to change the syntax, isn't it time that we removed support
for the flag from the compiler? I vote for eliminating the +/-W flag.
--
Alastair Reid www.haskell-consulting.com
More information about the Hugs-Bugs
mailing list