haxr representation of Booleans

In haxr-20060626, is the representation of booleans correct? I read here http://www.xmlrpc.com/spec that True is <boolean>1</boolean> This is what e.g. the Python xml rpc library does. But haxr seems to generate <bool>true</bool> which would be false on both accounts (name and value). The obvious patch would be to Network/XmlRpc/Internals.hs : instance Show Type, instance Read Type, and showBool? ( readBool seems OK ) ( are there any non-obvious other places? ) Best regards, -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- ---- http://www.imn.htwk-leipzig.de/~waldmann/ -------

On 27 okt 2006, at 19.38, Johannes Waldmann wrote:
In haxr-20060626, is the representation of booleans correct?
I read here http://www.xmlrpc.com/spec that True is <boolean>1</boolean>
This is what e.g. the Python xml rpc library does.
But haxr seems to generate <bool>true</bool> which would be false on both accounts (name and value).
The obvious patch would be to Network/XmlRpc/Internals.hs : instance Show Type, instance Read Type, and showBool? ( readBool seems OK ) ( are there any non-obvious other places? )
I think that's it. I must have misread the spec. Or maybe there are implementations that use "true" and "false", I can't remember why I did it that way. I think the only change that is needed is to showBool. I've fixed that in darcs. Let me know if it fixes the issue for you, and if so I'll make a new release. /Björn
participants (2)
-
Bjorn Bringert
-
Johannes Waldmann