Haskell Platform Proposal: add the 'text' library
jwlato at gmail.com
Tue Oct 12 11:58:13 EDT 2010
> Message: 3
> Date: Mon, 11 Oct 2010 21:51:46 +0100
> From: Ian Lynagh <igloo at earth.li>
> Subject: Re: Haskell Platform Proposal: add the 'text' library
> To: libraries at haskell.org
> Message-ID: <20101011205146.GA29025 at matrix.chaos.earth.li>
> Content-Type: text/plain; charset=us-ascii
> On Mon, Oct 11, 2010 at 09:12:33PM +0100, Malcolm Wallace wrote:
> > of the Data.Text package on the basis that Char/Text are the "same"
> > thing, then it may become clearer how to resolve the apparent name/type
> > clashes below.
> But this doesn't allow the multi-Char functions to be added to
> byetstring/List with the same name. For example:
> >> split - - Text -> Text -> [Text]
> >> - - split Char -> Text -> [Text]
> > split - split Text -> Text -> [Text]
> > Proposal: these are equivalent, no action,
> I can do
> split "\r\n"
> split ", "
> etc with a text, but not with a bytestring, and if we agree to add that
> functionality to bytestring then we'll have to call it splitString or
> splitMany or some other, different, name.
Really you shouldn't be able to do
with a bytestring at all.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries