
org.plasmalabs.common.ContextualValidation.scala Maven / Gradle / Ivy
package org.plasmalabs.common
trait ContextualValidation[F[_], E, T, Context] {
/**
* Determines the validity of the given value, within some context.
* (i.e. if T is a Transaction, there is context about the sequence of transactions leading up to the given `t`)
*/
def validate(context: Context)(t: T): F[Either[E, T]]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy