Am Dienstag, 5. August 2014, 13:59:26 schrieb Brandon Allbery:
> On Tue, Aug 5, 2014 at 1:47 PM, Volker Wysk <[email protected]>
> > 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

Yes, that's the solution. 

You need these options for GHC: -XStandaloneDeriving -XDeriveDataTypeable


Thanks, and Bye,
V.W.
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to