Haskell Platform Proposal: add the 'text' library

Duncan Coutts duncan.coutts at googlemail.com
Wed Sep 8 09:55:05 EDT 2010

On 8 September 2010 14:43, Ian Lynagh <igloo at earth.li> wrote:

>> There are a number of other differences which probably want to be tidied
>> > up (mostly functions which are in one package but not the other, and
>> > ByteString has IO functions mixed in with the non-IO functions), but
>> > those seemed to be the most significant ones. Also,
>> >    prefixed :: Text -> Text -> Maybe Text
>> > is analogous to
>> >    stripPrefix :: Eq a => [a] -> [a] -> Maybe [a]
>> > in Data.List
>> I hadn't seen that. Hmm. For use with view patterns, I prefer the name I'm
>> using right now.
> I'd like us to proceed in a way that means we haven't still got
> Data.List.stripPrefix and Data.Text.prefixed in the HP in 3 years time.

Yes, they should be the same, one way or the other.


More information about the Libraries mailing list