graphql-1.5.0.0: Haskell GraphQL implementation
Safe HaskellSafe-Inferred
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
Show Error Source # 
Instance details

Defined in Language.GraphQL.Validate.Validation

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Eq Error Source # 
Instance details

Defined in Language.GraphQL.Validate.Validation

Methods

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

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

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