Created
March 15, 2013 03:38
-
-
Save markhibberd/5167311 to your computer and use it in GitHub Desktop.
Minimal import for validation.
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
| 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