logo       

class not used, error not detected: msg#00001

lang.haskell.glasgow.bugs

Subject: class not used, error not detected

Hello,

the following code is accepted by GHC but rejected by Hugs. I think, GHC is in
error here.
class C a where
x :: Int

main :: IO ()
main = return ()

Is the phenomenon mentioned in
http://haskell.org/pipermail/haskell/2003-August/012428.html
similar to this problem?

Wolfgang


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise