failure to check completeness in instance declarations

Andrew Tolmach <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
The following file is accepted by hugs (Nov.02 version on linux) without
complaint.
Attempting to evaluate z causes a Segmentation fault (not unreasonably,
perhaps!).
As far as I can tell, completeness is never being checked statically. 
Sometimes
it is successfully checked dynamically and causes an "Undefined member"
error.

-----------

data Foo a = Foo a

instance Eq (Foo a) where

z = Foo 1 == Foo 2

---------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.