type-spec-0.2.0.0: 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 k expectation1, PrettyTypeSpec k1 expectation2) => PrettyTypeSpec * ((-/-) k k1 expectation1 expectation2) Source #

Pretty Printing Instance.

Methods

prettyTypeSpec :: proxy t -> Doc Source #

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