Skip to content
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

Streaming and StreamingT extend Product with Serializable #648

Merged
merged 1 commit into from
Nov 15, 2015

Commits on Nov 15, 2015

  1. Streaming and StreamingT extend Product with Serializable

    This helps type inference by fixing the least upper bound of subtypes of
    Streaming(T).
    
    Before:
    ```scala
    scala> val x = if (true) Cons(1, Now(Streaming.empty[Int])) else Streaming.Empty[Int]()
    x: Product with Serializable with cats.data.Streaming[Int] = Streaming(1, ...)
    ```
    
    After:
    ```scala
    scala> val x = if (true) Cons(1, Now(Streaming.empty[Int])) else Streaming.Empty[Int]()
    x: cats.data.Streaming[Int] = Streaming(1, ...)
    ```
    ceedubs committed Nov 15, 2015
    Configuration menu
    Copy the full SHA
    ce4d738 View commit details
    Browse the repository at this point in the history