Subject: Generic compilation warnings...

MR K P SCHUPKE k.schupke at imperial.ac.uk
Tue Feb 17 15:07:03 EST 2004


When deriving Data with all warnings enabled, for example compiling the
following line:

data TestType = TestType Int deriving (Typeable,Data)

ghc 6.2 gives the following warnings:

    Warning: Pattern match(es) are non-exhaustive
	     In a case alternative:
		 Patterns not matched: GHC.Base.I# #x with #x `notElem` [1#]

Is there a problem with the 'derived' code, or should this warning be
ignored?

	regards,
	Keean Schupke.


More information about the Glasgow-haskell-users mailing list