[Haskell-cafe] Re: derive Drift - some help please

2009-03-08 Thread G?uenther Schmidt
Hi Sterling, sry, but I can't get it to work. Günther Sterling Clover schrieb: You shouldn't need any extra tools for this. A combination of the StandaloneDeriving and DeriveDataTypeable extensions in GHC should suffice. Cheers, S. On Sun, Mar 8, 2009 at 10:30 AM, Gü?nther Schmidt

Re: [Haskell-cafe] Re: derive Drift - some help please

2009-03-08 Thread Alexander Dunlap
What problems are you encountering? Alex On Sun, Mar 8, 2009 at 11:58 AM, G?uenther Schmidt red...@fedoms.com wrote: Hi Sterling, sry, but I can't get it to work. Günther Sterling Clover schrieb: You shouldn't need any extra tools for this. A combination of the StandaloneDeriving and

[Haskell-cafe] Re: derive Drift - some help please

2009-03-08 Thread Gü?nther Schmidt
Hi Alexander, well I have this: newtype AdmissionDate = AdmDt LocalTime deriving (Data,Typeable ..) at least that's where I wonna get. I don't know how to create the proper instance declarations though for LocalTime. AdmissionDate is an element of a larger data structure, this

[Haskell-cafe] Re: derive Drift - some help please

2009-03-08 Thread Alexander Dunlap
Well you can do deriving instance Typeable LocalType etc. if you enable the DeriveDataTypeable and StandaloneDeriving extensions. You will get other error messages for missing instances; just keep adding deriving instance Typeable Day etc. Eventually, you will need to implement an instance

[Haskell-cafe] Re: derive Drift - some help please

2009-03-08 Thread Gü?nther Schmidt
Hi Alexander, this does the trick! Günther Alexander Dunlap schrieb: Well you can do deriving instance Typeable LocalType etc. if you enable the DeriveDataTypeable and StandaloneDeriving extensions. You will get other error messages for missing instances; just keep adding deriving