Hi, when I try to use Hugs 98 to run code that appeals to the ST library, I get the following error: ERROR /home/mctague/share/hugs/lib/exts/ST.hs:48 - Syntax error in type expression (unexpected `.') Monad> Could I be doing something silly? Carl
Not really, but I suspect if you turn off Haskell98 compatibility mode, you'll see an immediate improvement :) i.e., invoke the interpreter with the option "-98" added to the command-line. The reason for having to enable the Hugs extensions is that the ST module makes crucial use of rank-2 polymorphic types, which goes beyond what Haskell98 standardised. hth, --sigbjorn ----- Original Message ----- From: "Carl McTague" <mctague@one.net> To: <hugs-bugs@haskell.org> Sent: Saturday, September 08, 2001 12:31 Subject: ST Bug
Hi, when I try to use Hugs 98 to run code that appeals to the ST library, I get the following error:
ERROR /home/mctague/share/hugs/lib/exts/ST.hs:48 - Syntax error in type expression (unexpected `.') Monad>
Could I be doing something silly?
Carl
_______________________________________________ Hugs-Bugs mailing list Hugs-Bugs@haskell.org http://www.haskell.org/mailman/listinfo/hugs-bugs
participants (2)
-
Carl McTague -
Sigbjorn Finne