You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Scala 2.13, scala.collection.immutable.Stream is deprecated and scala.collection.immutable.LazyList is recommend for replacement.
Deprecated
(Since version 2.13.0) Use LazyList (which is fully lazy) instead of Stream (which has a lazy tail only)
Scalaz doesn't not have LazyListInstance for 2.13. I was thinking about adding LazyListInstance but it's not as simple as adding one typeclass instance since other types and typeclasses use Stream (e.g. scalaz.Zipper, scalaz.Foldable, etc.).
Could you please add LazyListInstance? I'm not sure what can be the best solution for this though. Replacing Stream with LazyList in Scalaz would be nontrival work.
The text was updated successfully, but these errors were encountered:
@tonymorris Thanks for letting me know. I didn't know about EphemeralStream. I think I should try it.
Regarding adding the instances for LazyList, that's what I had tried before I opened this issue ticket. I found that it was not just about the LazyListInstance. Other types and typeclasses (e.g. Zipper, Tree.Node, Foldable, etc.) rely on Stream so those types should be moved to the scala-2.13- folder and new ones using LazyList for Scala 2.13 should be added to the scala-2.13+ folder. Yet I'm not sure if replacing Stream with LazyList for Scala 2.13 is a right solution. Also not sure about consequence of it. It may break another part of Scalaz? So I don't think I'm a right person to do it.
It would be great if others who understand Scalaz well can discuss and come up with a right solution.
In Scala 2.13,
scala.collection.immutable.Stream
is deprecated andscala.collection.immutable.LazyList
is recommend for replacement.Scalaz doesn't not have
LazyListInstance
for 2.13. I was thinking about addingLazyListInstance
but it's not as simple as adding one typeclass instance since other types and typeclasses useStream
(e.g.scalaz.Zipper
,scalaz.Foldable
, etc.).Could you please add
LazyListInstance
? I'm not sure what can be the best solution for this though. ReplacingStream
withLazyList
in Scalaz would be nontrival work.The text was updated successfully, but these errors were encountered: