[Haskell-cafe] Confused about my IterIO code
Brandon Allbery
allbery.b at gmail.com
Thu Jun 30 16:41:34 CEST 2011
On Thu, Jun 30, 2011 at 09:53, John Ky <newhoggy at gmail.com> wrote:
> enum |$ inumReverseLines .| iter
> inumReverseLines = mkInum $ do
> line <- lineI
> return (L.reverse (L.concat [line, C.pack "\n"]))
>
> No attempt was made to reverse more than one line - at least as far as I can
> see. What have I done wrong that it should work so well?
An iterator that doesn't iterate isn't very useful.
--
brandon s allbery allbery.b at gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
More information about the Haskell-Cafe
mailing list