Skip to content

Instantly share code, notes, and snippets.

@Leammas
Created February 22, 2018 11:48
Show Gist options
  • Save Leammas/fffb5e8cedd2df196c7b6669d03fcafb to your computer and use it in GitHub Desktop.
Save Leammas/fffb5e8cedd2df196c7b6669d03fcafb to your computer and use it in GitHub Desktop.
object Validation {
type Field = String
type Code = String
type Error = (Field, Code)
type ValidationResult[A] = Validated[Error, A]
type Validation[A] = Applicative[Nested[Task, ValidationResult, A]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment