Jasper Moeys
Jasper Moeys
Code: ```scala import scala.concurrent.duration._ import cats.effect.{IO, Resource} import fs2.Stream import cats.effect.unsafe.implicits.global Stream.resource( Resource.make(IO.println("start"))(_ => IO.println("stop")) ) .flatMap(_ => Stream(1,2,3,4).covary[IO].metered(100.millis)) .take(2) .evalTap(IO.println) .groupWithin(2, 1.second) .evalTap(IO.println) .compile .drain .unsafeRunSync() ``` Result: ```...
Everything after `import Foo._; object Foo` fails, in at least Scala 2.10.6, 2.11.8, 2.11.11 and 2.12.2. ``` scala> :paste // Entering paste mode (ctrl-D to finish) import Foo._ object Foo...