Make Template Haskell classInstances function return [ClassInstance]
authorsimonpj@microsoft.com <unknown>
Thu, 13 Jan 2011 11:14:21 +0000 (11:14 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 13 Jan 2011 11:14:21 +0000 (11:14 +0000)
commit2a334098a6ec81a532bbe93183c2cf6c818c0c6c
treef0620e32452e1b6bfe5d15cb69425d0ad8e09058
parent6ffbfe99284a4e9da0ff5a55ef49bc7450d1aa00
Make Template Haskell classInstances function return [ClassInstance]

This is a recently-introduce function, which was returning
a [Name], being the names of the dfuns.  But what you really
want (obviously!) is the ClassInstances, and we have a TH type
for that.

This is an API change, so don't merge into GHC 7.0.  But it's
a new part of TH which is still settling down.

Fixes Trac #4863.
compiler/typecheck/TcSplice.lhs