Changes to Typeable

Oren Ben-Kiki haskell-oren at ben-kiki.org
Wed Oct 3 15:18:17 CEST 2012


Plan A does seem better.

Speaking of making changes to Typeable, is there a chance of
connecting/converting between Data.Typeable.TypeRep and
Language.Haskell.TH.Type?

Oren Ben-Kiki

On Wed, Oct 3, 2012 at 3:03 PM, Edward Kmett <ekmett at gmail.com> wrote:

> I'm definitely in favor of Plan A.
>
> -Edward
>
> On Wed, Oct 3, 2012 at 8:01 AM, Simon Peyton-Jones <simonpj at microsoft.com>wrote:
>
>> * If we do make Typeable instances by default, there are two paths
>>    Plan A (easy): make GHC derive Typeable for everything, deprecate
>>             all uses of 'deriving Typeable'.  Small downside: some
>> programs
>>             that are currently rejected will be accepted.
>>
>>    Plan B (tiresome): have AutoDeriveTypable as an extension.  That
>>            means maintaining the massive instance table.
>>
>>    Personally I vote for Plan A.   It's easier and more efficient to
>> implement,
>>    and the upside of Plan B is modest in the extreme.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20121003/b3cf5171/attachment.htm>


More information about the Libraries mailing list