>
> > It would probably speed up my code somewhat if the GHC
> > libraries provided
> > more support for PackedStrings. For example, some code I have
[..]
>
> In general though I agree, our library support for packed strings is
> lacking, but it's not clear whether duplicating every function with String
> in its type is the right way to go. "class String" anyone? :-)
I know this has been mentioned before, but if anyone ever writes such
a beast, please could they look at ML's Substring library and emulate
that? It allows pure functional string manipulation (RE matching,
substrings etc) with much less copying than PackedString or [Char]
require.
--KW 8-)
--
: Keith Wansbrough, MSc, BSc(Hons) (Auckland) -------------------:
: PhD Student, Computer Laboratory, University of Cambridge, UK. :
: Native of Antipodean Auckland, New Zealand: 174d47'E, 36d55'S. :
: http://www.cl.cam.ac.uk/users/kw217/ mailto:[EMAIL PROTECTED] :
:----------------------------------------------------------------: