Skip to content

Instantly share code, notes, and snippets.

@cvogt
Created September 21, 2014 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvogt/bda9bd48578ccccc2d1e to your computer and use it in GitHub Desktop.
Save cvogt/bda9bd48578ccccc2d1e to your computer and use it in GitHub Desktop.
import scalaz._
import Scalaz._
object MyApp extends App{
type Scott[V] = EitherT[Option,String,V]
type ScottI = Scott[Int]
def myf: Int => ScottI = _.point[Scott]
def lar: ScottI = for{
x <- myf(4)
y <- myf(9)
} yield y + x
println("lar lar lar")
print(lar.run.get)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment