This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.{TimeUnit, Executors} | |
import scala.annotation.tailrec | |
import scalaz.{\/-, -\/, \/} | |
import java.util.concurrent.atomic.AtomicReference | |
object TM { | |
case class Baseline[A](baseline: A) | |
case class Transaction[A](baseline: Baseline[A], update: A) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main | |
import Effects | |
import Effect.StdIO | |
FOO : Type -> EFFECT | |
FOO t = ?FOO | |
------------- This works ----------- | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.sql.{Connection, PreparedStatement} | |
object SqlInterpolation { | |
case class StatementPreparation(string: String, effect: PreparedStatement => Unit) { | |
override def toString: String = s"""StatementPreparation("$string", $effect)""" | |
} | |
implicit class ConnectionOps(val connection: Connection) extends AnyVal { | |
def prepareStatement(sp: StatementPreparation): PreparedStatement = { |
OlderNewer