Hello,

I am new to pipes and am having lots of confusion. For reasons I'll omit, I 
want to be able to peek at the next element in the stream without consuming 
it, much like you might want to peek at the next input character in C 
rather than doing getchar().

This is my attempt at doing that (see http://lpaste.net/139351).

A couple problems. First, the output does not match what I expect, and I 
don't have any clue why. I also notice that if I use >+> to glue my program 
together rather than >~> the output changes. Don't know why that is either.

Second, it seems the only way I can combine these proxies is using the 
combinators such as >+> and >~> but oddly they all take function arguments 
and the only thing I can see to do with that is to use const. So, my 
thinking is I am not using the combinators correctly or the correct 
combinators.

Thanks for your time.

-- 
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