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:

                    __   __ __  __  ____   ___
_________________________________________
                    ||   || ||  || ||  || ||__     Hugs 98: Based on the
Haskell 98 standard
                    ||___|| ||__|| ||__||  __||    Copyright (c) 1994-1999
                    ||---||         ___||          World Wide Web:
http://haskell.org/hugs
                    ||   ||                        Report bugs to:
[EMAIL PROTECTED]
                    ||   || Version: May 1999
_________________________________________

                    Haskell 98 mode: Restart with command line option -98 to
enable extensions

                    Reading file "d:\Hugs98\lib\Prelude.hs":
                    Type :? for help
                    Prelude> :load
d:/HaskellDirect/0.15/examples/comcli/tst.hs
                    Reading file
"d:/HaskellDirect/0.15/examples/comcli/tst.hs":
                    ERROR "d:/HaskellDirect/0.15/examples/comcli/tst.hs"
(line 8): Syntax error in input (unexpected `=')
                    Prelude> 

Reply via email to