Fix Trac #4220
authorsimonpj@microsoft.com <unknown>
Thu, 12 Aug 2010 13:13:19 +0000 (13:13 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 12 Aug 2010 13:13:19 +0000 (13:13 +0000)
commit6efa3901fd6f1583fb654bd3659e88702dfd579a
tree8ace26cbbad68411fcb1f71eb2e0e53d63043f9d
parentc107a00ccf1e641a2d008939cf477c71caa028d5
Fix Trac #4220

For deriving Functor, Foldable, Traversable with empty
data cons I just generate a null equation
   f _ = error "urk"

There are probably more lurking (eg Enum) but this will do for now.
compiler/typecheck/TcGenDeriv.lhs