Skip to content

Instantly share code, notes, and snippets.

@markhibberd
Created March 15, 2013 03:38
Show Gist options
  • Select an option

  • Save markhibberd/5167311 to your computer and use it in GitHub Desktop.

Select an option

Save markhibberd/5167311 to your computer and use it in GitHub Desktop.
Minimal import for validation.
Welcome to Scala version 2.10.0 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_37).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import scalaz.std.string._
import scalaz.std.string._
scala> import scalaz.syntax.validation._
import scalaz.syntax.validation._
scala> import scalaz.syntax.apply._
import scalaz.syntax.apply._
scala> 1.success[String] |@| 2.success[String]
res0: scalaz.syntax.ApplicativeBuilder[scalaz.Unapply[scalaz.Apply,scalaz.Validation[String,Int]]{type M[X] = scalaz.Validation[String,X]; type A = Int}#M,Int,Int] = scalaz.syntax.ApplyOps$$anon$4@4f2320ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment