Re: -W option

Alastair Reid <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Organization Reid Consulting (UK) Ltd
Message-ID <[email protected]>
> [...] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.