2010/9/6 Bulat Ziganshin <bulat.zigans...@gmail.com>: > Hello Serguey, > > Monday, September 6, 2010, 8:16:03 PM, you wrote: >> Basically, you - and others, - propose to add another class isomorphic >> to already present lists. I think, most benefits of that class can be >> achieved by using list conversion and RULE pragma. > what i propose should allow to convert algorithm dealing with strings > into algorithm dealing with ByteStrings, simply by changing import > statement
View patterns?.. Also, I think that some general optimization that can fold computations together (like supercompilation) will certainly help here. > it's a cute goal - keep Haskell strings easy of use but add ByteString > performance Completely agree, this is a noble goal. But ByteStrings aren't polymorphic. So they cannot satisfy your class. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe