Re: [Haskell] XML Serialization and type constraints
26 Aug
2004
26 Aug
'04
8:47 a.m.
You can do it using overlapping instances... data A data B b data C c instance Encode A where ... instance Encode b => Encode (B b) where instance Encode c => Encode (C c) where Keean.
26 Aug
26 Aug
9:20 a.m.
New subject: XML Serialization and type constraints
On Thu, 2004-08-26 at 09:47, MR K P SCHUPKE wrote:
You can do it using overlapping instances...
data A data B b data C c
instance Encode A where ...
instance Encode b => Encode (B b) where
instance Encode c => Encode (C c) where
Keean.
I don't understand what you mean; that code segment doesn't require overlapping instances. How can this help anyway since Encode (or Mixin or Hook) is a two parameter type-class? Thanks, -Si -- Simon D. Foster <u1sf@dcs.shef.ac.uk> Sheffield University
8037
Age (days ago)
8037
Last active (days ago)
1 comments
2 participants
participants (2)
-
MR K P SCHUPKE -
Simon D. Foster