Hugs98 doesn't support qualified method names in instance
decls (as was reported here a couple of weeks ago). 

In the event you're seeing these qualified method names
in HaskellDirect generated source, there's a workaround just
to accommodate Hugs users; compile the IDL spec with
-fno-qualified-instance-methods (see HaskellDirect user
manual).

--sigbjorn

> Conal Elliott writes:
> 
> Is it legal to use a qualified class name in an instance 
> decl?  Hugs98 objects.  The program:
> 
                >     module Test where
                > 
                >     import qualified Prelude
                > 
                >     data Test = Test
                > 
                >     instance Prelude.Eq Test where
                >       (Test == Test) = True
> 
> The complaint:
> 
                ...
                > (line 8): Syntax error in input (unexpected `=')
                >     Prelude> 
> 

Reply via email to