[Haskell] XML Serialization and type constraints

MR K P SCHUPKE k.schupke at imperial.ac.uk
Thu Aug 26 04:47:18 EDT 2004


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.


More information about the Haskell mailing list