Packages

  • package root
    Definition Classes
    root
  • package data
    Definition Classes
    root
  • package validation

    A set of cats related data types for validation specific to our needs that included data driven validation while still supporting multple styles such as DSL or non-DSL.

    A set of cats related data types for validation specific to our needs that included data driven validation while still supporting multple styles such as DSL or non-DSL.

    Overview

    By using cats you can compose on the Result or the Validator depending on your needs. Some additonal methods for defining a Validator are provided using the Tester classes--smart constructors for Validator.

    Definition Classes
    data
  • trait Algebra[F[_]] extends AnyRef

    A validation concept involves a function that evaluates a value and the ability to create a success or failure based on an input type wrapped in F.

    A validation concept involves a function that evaluates a value and the ability to create a success or failure based on an input type wrapped in F. F must be able to express the concept of success or failure. Note that at this level, F could be a product type or sum type (coproduct). Usually they are sum types.

    Should we consider message gathering to be a "logging" activity and use a writer monad?

    Definition Classes
    validation
  • Logic

trait Logic extends AnyRef

Since we can fail and succeed, add logic support. This is really a Semigroup "combine" for a specific logic operation. Explicitly use or create an import for them as needed. We could defined an isValid type method in this trait but that's a bit of a code smell that we are using procedural logic and we can use these semigroups in other places and algorithms.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logic
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract val AndSemigroupK: SemigroupK[F]
  2. abstract val OrSemigroupK: SemigroupK[F]