Scalaz: Functional programming for Scala | IRC: irc://irc.freenode.net/scalaz | Discord: https://discord.gg/eYZhcW | Channel logs http://ircbrowse.net/scalaz | Latest stable release: 7.2.26 | http://github.com/scalaz/scalaz | https://scalaz.github.io/scalaz/#scaladoc Wokest message of the day: Well, I personally think that he's solving the problem of typeclasses not being horrible in Scala - @oleg-py
xuwei-k on 7.2.x
fix compile error with latest S… (compare)
Hi! I'm trying to migrate pureconfig to scalaz 7.3 (pureconfig/pureconfig#752) but I'm getting an error about a missing instance of Unapply
:
<console>:42: error: Implicit not found: scalaz.Unapply[scalaz.Applicative, Unit]. Unable to unapply type `Unit` into a type constructor of kind `M[_]` that is classified by the type class `scalaz.Applicative`. Check that the type class is defined by compiling `implicitly[scalaz.Applicative[type constructor]]` and review the implicits in object Unapply, which only cover common type 'shapes.'
List(validConf, invalidConf, anotherInvalidConf).traverseU { c =>
^
I couldn't find any migration guide or release notes for scalaz 7.3. Do I have to import something now?
def f[F[_]](implicit E: MonadError[F, String], implicit T: MonadTell[F, Vector[String]]) = ...
import scalaz._
import Scalaz._
type W[A] = Writer[Vector[String], A]
type T[A] = EitherT[W, String, A]
f[T].run.run
I get errors about not finding the implicits. Do I need to import something else? Is that type T making things tricky for the implicit resolution?
Hi there.
We are currently in the progress of Updating scalaz from 7.2.30 to 7.3.2 but we are having a problem with our tests that are failing now (possibly due to The schange of Tree.flatten to EStream).
The test that is successful in 7.2.30 but not in 7.3.2 is a more complex version of:
import scalaz.Scalaz.ToTreeOps
import scalaz.Tree
val value1: Tree[String] = "hi".node("huhu".leaf, "haha".leaf)
val value2: Tree[String] = "hi".node("huhu".leaf, "haha".leaf)
value1.flatten == value2.flatten shouldBe true
Are we making something wrong? Or is there a better way to check if the trees contain the same elements?
Hi, I'm trying to use https://github.com/scalaz/scalaz-deriving in my play 2.8.0 project. I've defined the class like this:
import play.api.libs.json
import scalaz.annotation.deriving
import io.estatico.newtype.macros._
@deriving(json.Format)
@newtype final case class PurchaseId(value: String)
However when i'm compiling the project, i get an error like this:
Error:(8, 27) not found: value deriving
@newtype final case class PurchaseId(value: String)
Does anyone have an idea why could this happen?