Could Stream
s be monads?
#602
ivanperez-keera
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A while back we were asked whether
Stream
could be aMonad
.With the current type class constraints, it can't, because you can't store any
a
in aStream a
. However, it could perhaps be if we use a form of constrained monad withRebindableSyntax
, or if we makeStream a
fully polymorphic ina
.Beta Was this translation helpful? Give feedback.
All reactions