[project @ 2004-10-11 16:16:20 by simonpj]
authorsimonpj <unknown>
Mon, 11 Oct 2004 16:16:23 +0000 (16:16 +0000)
committersimonpj <unknown>
Mon, 11 Oct 2004 16:16:23 +0000 (16:16 +0000)
commit6a4854eaa266d994ebd0d471614a52b43dd329d9
tree8fdcb3a57dc339efacd0c5457dd6796346bbcfc2
parent92342d8911151aef493e20ad264ea2afde1f591b
[project @ 2004-10-11 16:16:20 by simonpj]
---------------------------------
Add lists to valid derivable methods
---------------------------------

(It'd be nice to merge this into the stable
branch. It is an increase in functionality, but
it's quite separate from everything else.)

Lists are useful in derivable type classes.  E.g. methods like

class Shrinkable a where
  op :: a -> [a]

This commit adds them, to join functions and tuples.
ghc/compiler/typecheck/TcTyClsDecls.lhs
ghc/compiler/types/Generics.lhs