On 20 March 2011 15:05, Pieter Laeremans
<pieter@laeremans.org> wrote:
Hi all,
The MIME package that can be found on hackage, uses String as input.
Would i be considered better if there would be a version based on Text, or ByteString ?
I think the solution to this problem is a generic `string' package which just provides a few classes. The MIME library would export an interface that only deals with instances of these classes, and whether you're using Text, String, ByteString/Lazy/Char8, ropes, whatever, it's not the library writer's concern or assumptions to make.
Which works on Monoid and IsString, but there needs to be a class like "can be read/outputted via IO" and one for read/show/serialize, both of which are important for speed.