type-spec-0.3.0.1: Type Level Specification by Example

Safe HaskellNone
LanguageHaskell2010

Test.TypeSpec.Group

Description

Composed Expectations.

Synopsis

Documentation

data expectation1 -/- expectation2 infixr 1 Source #

Combine two expectations.

Make a collection of expectations:

  (2 + 2)  `Is`     4
                          -/-
  (4 + 4)  `Is`     8
                          -/-
  'True    `IsNot` 'False

Instances

(PrettyTypeSpec k1 expectation1, PrettyTypeSpec k expectation2) => PrettyTypeSpec * ((-/-) k k1 expectation1 expectation2) Source #

Pretty Printing Instance.

Methods

prettyTypeSpec :: proxy t -> Doc Source #

type EvalExpectation * ((-/-) a a1 expectation expectations) Source # 
type EvalExpectation * ((-/-) a a1 expectation expectations) = (<*>) (Either ErrorMessage) a * ((<$>) (Either ErrorMessage) a1 ((~>) a *) (TyCon2 * a a1 ((-/-) a a1)) (EvalExpectation a1 expectation)) (EvalExpectation a expectations)