A library that contains utility classes and Scala adapters and adaptations for VAVR.
This library is cross-built against Scala 2.12.x, 2.13.x, and Scala 3.0.x
If you're using SBT, add the following line to your build file:
libraryDependencies += "org.gfccollective" %% "gfc-vavr" % "x.y.z"
For Maven and other build tools, you can visit search.maven.org. (This search will also list other available libraries from the GFC Collective.)
These contain implicit and explicit functions to convert between
io.vavr.control.Option
andscala.Option
io.vavr.control.Either
andscala.util.Either
io.vavr.control.Try
andscala.util.Try
io.vavr.concurrent.Future
andscala.concurrent.Future
val foo: Option[String] = ???
// Explicit conversion Scala Option -> Vavr Option
import org.gfccollective.vavr.VavrConverters._
val bar: io.vavr.control.Option[String] = foo.asVavrOption
// Implicit conversion Vavr Option -> Scala Option
import org.gfccollective.vavr.VavrConversions._
val baz: Option[String] = bar
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0