
25 Dec
2009
25 Dec
'09
10:35 a.m.
Network.URI.escapeURIString is pretty much always used to make a String a URL or a part of a URL. The existing definition http://www.haskell.org/ghc/docs/6.10.4/html/libraries/network/Network-URI.ht... forces one to do extra work by having to specify a `Char -> Bool`. More than a few packages & libraries simply define an 'escape' function `escapeURIString isAllowedInURI` (either inline or as a named function). This sort of repetition is unfortunate. The name 'escape' is commonly used to express exactly that functionality: http://holumbus.fh-wedel.de/hayoo/hayoo.html#0:escape What would people say to adding such a function? -- gwern