cvs commit: fptools/libraries/network/Network URI.hs
gk at ninebynine.org
Fri Oct 29 02:59:13 EDT 2004
At 22:42 28/10/04 +0200, Sven Panne wrote:
>Graham Klyne wrote:
>>Oops, well spotted, thanks. That's another small change I made
>>recently. I should have mentioned in the CVS comment, but forgot, that I
>>changed the order of parameters to escapeString. Does anyone have any
>Yes, I do! :-) It breaks old programs and introduces just another #ifdef...
Ah, that's a good reason. I've been working on this for so long now I
forget which interfaces are new and which are old.
>>diff -r1.13 -r1.12
>>< , escapeString -- :: (Char->Bool) -> String -> String
>> > , escapeString -- :: String -> (Char->Bool) -> String
>>(Rationale: the revised parameter order makes it easier to create
>>specialized string-escape functions by currying with the
>I really like the new order much more and I've never understood the old one,
>to be honest. Nevertheless, I think we should keep the old version
>and be creative about a new name for the version with swapped parameters
>escapeChar). That's library business...
Create a new function escapeURIString with the character-test arg first
Define deprecated escapeString = flip escapeURIString
More information about the Cvs-libraries