[Haskell-cafe] Can i split a String by its element ?

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Wed Feb 23 04:09:58 CET 2011


On 23 February 2011 14:06, z_axis <z_axis at 163.com> wrote:
>
> :hoogle splitOn
> No results found
>
> :m + Data.Text
>  splitOn "," "2,15,33,0,8,1,16,18"

It's from Data.List.Split, not Data.Text if you want to user Strings.
Alternatively, you can use the Text version with OverloadedStrings.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list