-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect example in documentation #6
Comments
I fixed this but haven't released it yet because I was busy with a deadline
|
Here you go. Sorry if it is not formatted correctly. I'll let you know **
And here is the corrected one:
short circuit upstream pipes Here's the reasoning behind the case statement order. First off, several case statements can only resolve one way and are await -> m The identity laws require several more priorities. From the identity laws forever (await >>= yield) <+< (yield x) On 01/20/2012 07:53 AM, Paolo Capriotti wrote: The category axioms do not hold for either the
prints 2, while
prints 2 and 1. Also,
the pipe I initially thought it was just a matter of reordering some clauses in the The issue with identity is less of a concern, since it's always possible to Reply to this email directly or view it on |
Ah I see. It is working fine with that correction. I was too distracted trying to find something wrong in the definitions of 'printer' etc to consider that the trouble might have arisen in the library. yours Michael ----- Original Message ----- Here you go. Sorry if it is not formatted correctly. I'll let you know ** (Yield (x1, p1), p2 ) -> yield x1 >> p1 <+< p2 And here is the corrected one: (Yield (x1, p1), p2 ) -> yield x1 >> p1 <+< p2 Here's the reasoning behind the case statement order. First off, several case statements can only resolve one way and are await -> m The identity laws require several more priorities. From the identity laws forever (await >>= yield) <+< (yield x) On 01/20/2012 07:53 AM, Paolo Capriotti wrote: The category axioms do not hold for either the runPipe $ lift (print 1) >+> yield () >+> lift (print 2) prints 2, while runPipe $ lift (print 1) >+> (yield () >+> lift (print 2)) prints 2 and 1. Also, feed = yield () >> lift (print 0) the pipe I initially thought it was just a matter of reordering some clauses in the The issue with identity is less of a concern, since it's always possible to Reply to this email directly or view it on Reply to this email directly or view it on GitHub: |
Ok, I just uploaded the fix as v1.0.1. It should show up on Hackage On 02/01/2012 08:49 AM, Michael Thompson wrote:
|
I can't figure out where the error is, but the definitions from the documentation,
printer
seems to go wrong by continuing to request input when it should have stopped:The text was updated successfully, but these errors were encountered: