Hi David,

I made some progress http://sprunge.us/iPPE Defining `splitOn` in terms of 
`breakOn` is
pretty simple.  Ideally one would like to use `T.splitOn`, since it is so fast 
and would speed
up operations when we are taking in large text chunks; that would be a totally 
different structure. 

The two formulations of `breakOn` follow your method and 
just pass along what could be an initial segment of a match: the first just 
keeps the last bit
that is one Char shorter than the needle (irrespective of content); the other 
inspects this chunk.
The second is nicer but I was worried the apparatus of inspection was going to 
slow things
more than it was worth. It doesn't seem worse from some initial tests. Do they 
seem wrong, or clunky?

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Haskell Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haskell-pipes+unsubscr...@googlegroups.com.
To post to this group, send email to haskell-pipes@googlegroups.com.

Reply via email to