Fix Trac #1913: check data const for derived types are in scope
authorsimonpj@microsoft.com <unknown>
Wed, 21 Nov 2007 15:14:28 +0000 (15:14 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 21 Nov 2007 15:14:28 +0000 (15:14 +0000)
commit0a17d9c2a9c218841a67c258239fb7d2d4f2319d
treeaf198412feb26b127c2881d446b20567e6cf3f71
parenta08fdacc32123d8e2db2b381b695a8d860857184
Fix Trac #1913: check data const for derived types are in scope

When deriving an instance, the data constructors should all be in scope.
This patch checks the condition.
compiler/typecheck/TcDeriv.lhs