type-spec-0.2.0.0: Type Level Specification by Example

Safe HaskellNone
LanguageHaskell2010

Test.TypeSpec.Label

Description

Labels for expectations.

Synopsis

Documentation

data It :: Symbol -> expectation -> Type Source #

Add a type level string as label or longer descripton around expectations. This is analog to the it function in the hspec package.

Instances

(KnownSymbol msg, PrettyTypeSpec expectation x) => PrettyTypeSpec Type (It expectation msg x) Source # 

Methods

prettyTypeSpec :: proxy t -> Doc Source #

type EvalExpectation Type (It expectation message expectation1) Source # 
type EvalExpectation Type (It expectation message expectation1) = (>>) Type (Either ErrorMessage) expectation (PrependToError expectation ((:$$:) (Text message) (Text " ")) (EvalExpectation expectation expectation1)) (OK ErrorMessage Type (It expectation message expectation1))