[Haskell] XML Serialization and type constraints