haxr representation of Booleans

Bjorn Bringert bringert at cs.chalmers.se
Fri Oct 27 18:05:05 EDT 2006

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.


More information about the Libraries mailing list