All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalaz.syntax.ToStateOps.scala Maven / Gradle / Ivy

The newest version!
package org.specs2.internal.scalaz
package syntax

trait StateV[A] extends Ops[A] {
  def state[S]: State[S, A] = State.state(self)
  def stateT[F[+_]:Pointed, S]: StateT[F, S, A] = StateT.stateT[F, S, A](self)
}

trait ToStateOps {
  implicit def ToStateV[A](a: A) = new StateV[A]{ def self = a }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy