We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The new Source<A> type yields a StreamT when .Await<IO>() is called.
Source<A>
StreamT
.Await<IO>()
Posting a value to the Source (with Post) doesn't immediately yield a value downstream. It seems to yield when a subsequent item is posted.
Source
Post
static StreamT<IO, Unit> show(Source<string> source) => from v in source.Await<IO>() from _ in writeLine(v) where false select unit;
It seems the item makes it all the way to the M.Pure(MList<A>.Cons(iter.Current, next(iter))); in Lift(IEnumerable) but no value yields.
M.Pure(MList<A>.Cons(iter.Current, next(iter)));
Lift(IEnumerable)
I suspect that the IO monad doesn't evaluate until subsequent binds/combines, which means we need another item to come thru to get the first one.
Debugging this was an absolute sh!t which is turning my head inside out. So logging this for now so I can come back to it fresh.
The test case is Streams sample "0. Source stream"
Streams
"0. Source stream"
The text was updated successfully, but these errors were encountered:
louthy
No branches or pull requests
The new
Source<A>
type yields aStreamT
when.Await<IO>()
is called.Posting a value to the
Source
(withPost
) doesn't immediately yield a value downstream. It seems to yield when a subsequent item is posted.It seems the item makes it all the way to the
M.Pure(MList<A>.Cons(iter.Current, next(iter)));
inLift(IEnumerable)
but no value yields.I suspect that the IO monad doesn't evaluate until subsequent binds/combines, which means we need another item to come thru to get the first one.
Debugging this was an absolute sh!t which is turning my head inside out. So logging this for now so I can come back to it fresh.
The test case is
Streams
sample"0. Source stream"
The text was updated successfully, but these errors were encountered: