It's a known bug in GHC 4.08, fixed in GHC 4.08.1 which is about to 
appear.  It shows up when you mention a class in the type of one
of its own methods.  Sorry about this!

Simon

| -----Original Message-----
| From: Jose Emilio Labra Gayo [mailto:[EMAIL PROTECTED]]
| Sent: 29 August 2000 10:03
| To: [EMAIL PROTECTED]
| Subject: AClass
| 
| 
| 
| When I compile the following piece of code I obtain the very 
| short message:
| 
| AClass
| 
| 
| ----------------------------------
| \begin{code}
| 
| module Main(main) where
| import Char
| 
| class Point p where
|   xBody  :: Point self => (p -> self) -> p -> Int
| 
| main :: IO ()
| main = putStrLn "Hola"
| 
| \end{code}
| 
| Notes: 
| 
| - That piece of code is taken from the translation used in 
| the "Haskell++" 
| paper
| 
| - It seems to work ok in Hugs98 (I suppose that it also works in hbc, 
| but I didn't try)
| 
| - I am using ghc-4.08 in Debian linux and in Win32 (the same message)
| 
| Regards, Jose Labra
| http://lsi.uniovi.es/~labra
| 
| 

  • AClass Jose Emilio Labra Gayo
    • Simon Peyton-Jones

Reply via email to