Re: Haskell Platform Proposal: add the 'text' library

Message: 3 Date: Mon, 11 Oct 2010 21:51:46 +0100 From: Ian Lynagh
Subject: Re: Haskell Platform Proposal: add the 'text' library To: libraries@haskell.org Message-ID: <20101011205146.GA29025@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" or 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 split "\r\n" or even split '\n' with a bytestring at all.
participants (1)
-
John Lato