Skip to content

Instantly share code, notes, and snippets.

@weihsiu
weihsiu / GuessTheNumber.scala
Created April 11, 2017 17:05
Example of using Eff monad
package catssandbox
import aiyou._
import aiyou.implicits._
import cats._
import cats.data._
import org.atnos.eff._
import org.atnos.eff.all._
import org.atnos.eff.syntax.all._
import IOEffect._
package hellodotty
import java.util.concurrent.LinkedTransferQueue
import scala.collection._
import scala.concurrent.ExecutionContext
import scala.reflect.ClassTag
object Actors:
trait Channel[A]: