Simple string tokenizer?

Sorry if this question was asked billions of times already, but I can not find a simple string tokenizer. All I need is to split a line in chunks at specified delimiter such as (,), nothing more. Don't want to write it myself for two reasons: 1) have to write lots of other code in very short time 2) don't want undermine idea of code reuse ) Where to get latest Data.String.Utils library that I saw somewhere on the web and that has a nice and simple 'split' function? Thanks!

Would this work? http://hackage.haskell.org/packages/archive/split/0.1.4/doc/html/Data-List-S... On Jun 15, 2011, at 12:21 PM, Dmitri O.Kondratiev wrote:
Sorry if this question was asked billions of times already, but I can not find a simple string tokenizer. All I need is to split a line in chunks at specified delimiter such as (,), nothing more. Don't want to write it myself for two reasons: 1) have to write lots of other code in very short time 2) don't want undermine idea of code reuse )
Where to get latest Data.String.Utils library that I saw somewhere on the web and that has a nice and simple 'split' function? Thanks!
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Wed, Jun 15, 2011 at 8:25 PM, Daniel Patterson
Would this work? http://hackage.haskell.org/packages/archive/split/0.1.4/doc/html/Data-List-S...
Yes, I think it will. Interface looks just great, thanks a lot!
http://hackage.haskell.org/packages/archive/split/0.1.4/doc/html/Data-List-S... On Jun 15, 2011, at 12:21 PM, Dmitri O.Kondratiev wrote:
Sorry if this question was asked billions of times already, but I can not find a simple string tokenizer. All I need is to split a line in chunks at specified delimiter such as (,), nothing more. Don't want to write it myself for two reasons: 1) have to write lots of other code in very short time 2) don't want undermine idea of code reuse )
Where to get latest Data.String.Utils library that I saw somewhere on the web and that has a nice and simple 'split' function? Thanks!
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (2)
-
Daniel Patterson
-
Dmitri O.Kondratiev