Skip to content

Instantly share code, notes, and snippets.

@arschles
Created December 7, 2012 02:16
Show Gist options
  • Save arschles/4230204 to your computer and use it in GitHub Desktop.
Save arschles/4230204 to your computer and use it in GitHub Desktop.
Scalaz Lift Compatability
package liftscalaz {
import scalaz._
type ScalazFailure = Failure
def ScalazFailure[E, S](e: E): ScalazValidation[E, S] = Failure[E, S](e)
type ScalazSuccess = Success
def ScalazSuccess[E, S](s: S): ScalazValidation[E, S] = Success[E, S](s)
type ScalazValidation = Validation
...
}
//usage
import liftscalaz._
val someFailure = ScalazFailure("something")
//and so on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment