runLog
on this Process
it throws an ambiguous implicits error which I import scalaz._
import Scalaz._
import scalaz.stream._
import java.time._
scala> Process.iterate(LocalDate.of(2017,5,15))(x => x.minusMonths(6)).takeWhile(_.equals(LocalDate.of(2007,5,15))).runLog
<console>:20: error: ambiguous implicit values:
both value vectorInstance in trait VectorInstances of type => scalaz.Traverse[scalaz.Scalaz.generic.IxSq] with scalaz.MonadPlus[scalaz.Scalaz.generic.IxSq] with scalaz.Each[scalaz.Scalaz.generic.IxSq] with scalaz.Index[scalaz.Scalaz.generic.IxSq] with scalaz.Length[scalaz.Scalaz.generic.IxSq] with scalaz.Zip[scalaz.Scalaz.generic.IxSq] with scalaz.Unzip[scalaz.Scalaz.generic.IxSq] with scalaz.IsEmpty[scalaz.Scalaz.generic.IxSq] with scalaz.Align[scalaz.Scalaz.generic.IxSq]{def toIndexedSeq[A](fa: scalaz.Scalaz.generic.IxSq[A]): scalaz.Scalaz.generic.IxSq[A]}
and value callableMonad in trait CallableInstances of type => scalaz.Monad[java.util.concurrent.Callable]
match expected type scalaz.Monad[F2]
Process.iterate(LocalDate.of(2017,5,15))(x => x.minusMonths(6)).takeWhile(_ == LocalDate.of(2007,5,15)).runLog
My Build.sbt file is :
scalaVersion := "2.11.6"
val scalazVersion = "7.1.2"
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % scalazVersion,
"org.scalaz.stream" %% "scalaz-stream" % "0.7.1a"
)
initialCommands in console := "import scalaz._, Scalaz._, scalaz.stream._, java.time._"
scalacOptions in ThisBuild ++= Seq("-feature", "-unchecked", "-deprecation")
resolvers += "Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases"
Regards,
Iftikhar
--
You received this message because you are subscribed to the Google Groups "scalaz" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalaz+un...@googlegroups.com.
To post to this group, send email to sca...@googlegroups.com.
Visit this group at http://groups.google.com/group/scalaz.
For more options, visit https://groups.google.com/d/optout.