graphql-1.0.0.0: Haskell GraphQL implementation
Safe HaskellNone
LanguageHaskell2010

Language.GraphQL.Validate.Validation

Description

Definitions used by the validation rules and the validator itself.

Synopsis

Documentation

data Error Source #

Validation error.

Constructors

Error 

Fields

Instances

Instances details
Eq Error Source # 
Instance details

Defined in Language.GraphQL.Validate.Validation

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

Show Error Source # 
Instance details

Defined in Language.GraphQL.Validate.Validation

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

data Rule m Source #

Rule assigns a function to each AST node that can be validated. If the validation fails, the function should return an error message, or Nothing otherwise.

type RuleT m = ReaderT (Validation m) Seq Error Source #

Monad transformer used by the rules.

data Validation m Source #

Validation rule context.

Constructors

Validation 

Fields