better-monadic-for icon indicating copy to clipboard operation
better-monadic-for copied to clipboard

Desugaring scala `for` without implicit `withFilter`s

Results 13 better-monadic-for issues
Sort by recently updated
recently updated
newest added

I had a compilation issue in production code today that I couldn't explain, so I reduced it to a minimal case: ```scala import cats.effect.IO object DeleteMe { // I am...

Hello there, First let me thank you for this amazing plugin. Being able to deconstruct values and weaves implicit in for-comprehension is a game changer. I'm using this plugin to...

Given build.sbt ``` scalaVersion := "2.13.5" addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1") scalacOptions += "-Ywarn-unused" ``` And main ```scala object Main extends App { for { implicit0(i: Int)

Spent a couple of hours trying to figure out how to handle `Could not find requested plugins: ['better-monadic-for']` error

## reproduction steps Desugar the following: ```scala for {x val y = 1; (x, y) }.foreach { case (x, y) => () } ``` ## expectation Because there's no `yield`,...

Scala's "for comprehensions" first try to use `withFilter` and then fallback to `filter` if it doesn't exist. I wonder if in a compiler plugin like this we could do the...

This code: ```scala val x = for { n 0 } yield n ``` triggers the "unused parameter" lint: ``` Error:(99, 7) parameter value n in value $anonfun is never...

question