Old code broken by new Typeable class
Brandon Allbery
allbery.b at gmail.com
Tue Aug 5 17:59:26 UTC 2014
On Tue, Aug 5, 2014 at 1:47 PM, Volker Wysk <verteiler at volker-wysk.de>
wrote:
> Am Dienstag, 5. August 2014, 12:46:23 schrieb Carter Schonwald:
> > i assume 7.6 and 7.8, if we're talking GHC rather than GCC :)
> >
> > in 7.8 you can't define userland typeable instances, you need only write
> > deriving (Typeable) and you're all set.
> > add some CPP to select the instances suitable
>
> So you need to be able to change the definition of the data type, in order
> to
> add deriving (Typeable). It's not possible to add a Typeable instance
> declaration later.
>
Are you sure? There is a standalone deriving syntax.
deriving instance Typeable ProcessStatus
http://www.haskell.org/ghc/docs/latest/html/users_guide/deriving.html#stand-alone-deriving
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20140805/c7217e0e/attachment.html>
More information about the Glasgow-haskell-users
mailing list