
I think you need to import Data.OldTypeable to get Typeable2 and friends. Pedro may remember more of the reasoning about backward compatibility.
| -----Original Message-----
| From: Christian Maeder [mailto:Christian.Maeder@dfki.de]
| Sent: 20 February 2014 16:09
| To: Simon Peyton Jones; Daniil Frumin
| Cc: glasgow-haskell-users@haskell.org
| Subject: Re: [Typeable2] Re: ANNOUNCE: GHC 7.8.1 Release Candidate 1
|
| With "TypeableN " I mean, Typeable1, Typeable2, etc.
| Typeable2 was not supported (below) by ghc-7.8-rc1.
|
| Where is the "backward compat"?
|
| In fact, Typeable and Typeable2 mean the same thing for ghc-7.8-rc1 and
| ghc-7.6 resp.!
|
| C.
|
| Am 20.02.2014 17:00, schrieb Simon Peyton Jones:
| > | Can you not simply let ghc-7.8 interpret TypeableN as Typeable?
| >
| > Not really: ghc-7.8 does still support TypeableN I think (for backward
| compat reasons). So it can't take it to mean two different things.
| >
| > | -----Original Message-----
| > | From: Glasgow-haskell-users [mailto:glasgow-haskell-users-
| > | bounces@haskell.org] On Behalf Of Christian Maeder
| > | Sent: 20 February 2014 15:51
| > | To: Daniil Frumin
| > | Cc: glasgow-haskell-users@haskell.org
| > | Subject: Re: [Typeable2] Re: ANNOUNCE: GHC 7.8.1 Release Candidate 1
| > |
| > | Yes, changing Typeable2 to Typeable in:
| > |
| > | {-# LANGUAGE StandaloneDeriving, DeriveDataTypeable #-} ...
| > | deriving instance Typeable Gr
| > |
| > | goes through with ghc-7.8-rc1.
| > |
| > | However, this change refuses to compile with ghc-7.6.3:
| > |
| > | Expecting two more arguments to `Gr'
| > | In the stand-alone deriving instance for `Typeable Gr'
| > |
| > | This is unfortunate, because I need to add conditional compilation
| > | to make my code compilable for the two most recent major versions of
| GHC.
| > |
| > | Can you not simply let ghc-7.8 interpret TypeableN as Typeable?
| > |
| > | Cheers Christian
| > |
| > | Am 13.02.2014 15:36, schrieb Daniil Frumin:
| > | > I think that the preferred solution is to get rid of the custom
| > | > Typeable(2) instances and just derive Typeable
| > | >
| > | > On Thu, Feb 13, 2014 at 5:22 PM, Christian Maeder
| > | >